Programming Entity Framework author, Julie Lerman, reviews the new features coming to Entity Framework in the VIsual Studio 2010/.NET 4.0 release. Watch for the 2nd Edition of her book in early 2010. This presentation is based on the Beta 1 of VS2010 and .NET 4.0.
Unleash Your Potential - Namagunga Girls Coding Club
What's New in Entity Framework 4, by Julie Lerman
1. What’s New in Entity Framework 4? Julie Lerman thedatafarm.com/blog jlerman@thedatafarm.com Twitter: @julielermanvt Julia Lerman October 17th 2009, New England Code Camp 12
2. Note to Viewers This presentation is based on the Beta 1 of Visual Studio 2010. Some things will change when Beta 2 and RTM versions are released Julia Lerman October 17th 2009, New England Code Camp 12
3. Julie Lerman Julia Lerman October 17th 2009, New England Code Camp 12 website theDataFarm.com blog & twitter theDataFarm.com/blog@julielermanVT book web site LearnEntityFramework.com consultant/mentor Microsoft MVP, INETA Speaker,ASPInsider, MCP, VTdotNET Leader
4. Agenda Design Tools Code Generation Customization Lazy Loading POCO Support Productivity Performance Improvements Post-Beta 1 Features Toolkit Julia Lerman October 17th 2009, New England Code Camp 12
5. Design Tool Enhancements Person/People Brewery/Breweries Julia Lerman October 17th 2009, New England Code Camp 12
6. Code Generation T4 Julia Lerman October 17th 2009, New England Code Camp 12 Text Template Transformation Toolkit
7. Lazy Loading Support ObjectContext .ContextOptions .LazyLoadingEnabled = true Julia Lerman October 17th 2009, New England Code Camp 12
8. POCO Support Turn off code generation from EDMX “Convention” will auto-map classes/entities Julia Lerman October 17th 2009, New England Code Camp 12
9. General Productivity ObjectSet Specialized ObjectQuery More flexibility for working with groups of like entity types Minimizes dependency on ObjectQuery’s execution State Management ApplyCurrentValues (was ApplyPropertyChanges in v1) ApplyOriginalValues ObjectStateEntry.ChangeState ObjectStateManager.ChangeRelationshipState Julia Lerman October 17th 2009, New England Code Camp 12
10. More Flexible Modeling Model-Defined Functions Custom properties bound to the model Use as query results or predicates Return scalars, collections, types, etc. Julia Lerman October 17th 2009, New England Code Camp 12
11. Performance Improvements Query compilation under the covers Smarter joins Some unnecessary casting removed Unnecessary IsNull use removed Improved store commands Better quality command = better performance Contains , StartsWith, EndsWith Julia Lerman October 17th 2009, New England Code Camp 12
12. Post-Beta 1 In the Box Foreign Key Support Other tweaks here and there Feature CPT Code Only Design Look Ma, No Model! Self-Tracking Entities More T4 Templates Julia Lerman October 17th 2009, New England Code Camp 12
13. Summary EF4 addresses many limitations of v1 Expanded capability for various development styles Many changes to support SOA and n-Tier Designer supports more mapping capabilities Julia Lerman October 17th 2009, New England Code Camp 12
15. Contact website theDataFarm.com blog & twitter theDataFarm.com/blog@julielermanVT book web site LearnEntityFramework.com Microsoft MVP, INETA Speaker,ASPInsider, MCP, VTdotNET Leader Julia Lerman October 17th 2009, New England Code Camp 12