Eric Nelson ericnelsonmicrosoftcom httpgeekswithblogsnetiupdateable httptwittercomericnel Developer Evangelist Microsoft UK Session Code DEV305 Agenda Quick recap of the journey so far ID: 402870
Download Presentation The PPT/PDF document "Entity Framework in the Microsoft .NET F..." is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.
Slide1Slide2
Entity Framework in the Microsoft .NET Framework 4 and Microsoft Visual Studio 2010
Eric Nelson
eric.nelson@microsoft.com
http://geekswithblogs.net/iupdateable
http://twitter.com/ericnel
Developer Evangelist
Microsoft UK
Session Code: DEV305Slide3
AgendaQuick recap of the journey so farEntity Framework 4.0 Drill DownLots of demosSlide4
Object Relational MappingMany ORMs out there
No clear “winner”
= relatively little adoption of ORM
Developers
waiting
on Microsoft
Then we
shipped two
... hmmm
LINQ to SQL in Visual Studio 2008
ADO.NET Entity Framework in Visual Studio 2008 SP1Slide5
ADO.NET Entity Framework RecapTools and services to
create an Entity Data Model (EDM)
Conceptual to Mapping to Storage
Tools and services for
consuming an Entity Data Model
LINQ to Entities, Object Services and Entity SQL
Together they address the
“impedance mismatch”
Conceptual
Mapping
Storage
Entity Data Model
Rows in
Tables
Objects in
ApplicationsSlide6
Entity Framework 1.0Too many pain points
The designer!
Model First not supported
Poor support for Stored Procedures
No
Pluralization
/
SingularizationForeign Keys hiddenLazy Loading not supportedMissing LINQ Operators vs LINQ to SQLGenerated SQL unreadable
No support for Plain Old CLR ObjectsN-Tier difficultSlide7
Entity Framework 4.0 Removing the friction
Better Tools and Design Experience
More powerful/flexible runtime
And
N-Tier*
Persistence Ignorance*
Code Only*
Note:* Delivered in .NET Framework 4 and a separate download Slide8
Better Tools and Design ExperienceModel FirstTemplated code generationStored Procedures
Pluralization
/
Singularization
Complex Types
Better delete and searchSlide9
Model First and Templated Code GenerationdemoSlide10
More powerful/flexible runtimeDeferred Loading (aka lazy loading)Foreign Keys surfacedMore complete LINQ implementationExecuteStoreQuery
EntityFunctions and SqlFunctions
Improvements to generated SQLSlide11
Deferred Loading, Generated SQLdemoSlide12
Persistence IgnoranceFirst class support for Persistence Ignorance No modifications to your classes!Slide13
Persistence IgnorancedemoSlide14
N-TierSelf Tracking EntitiesSlide15
N-TierdemoSlide16
Code OnlyCreate the database from the classesNo modelConvention to configSlide17
Code OnlydemoSlide18
Entity Framework The designer!
No support for Plain Old CLR Objects
No
Pluralization
/
Singularization
Foreign Keys hidden
Model First not supportedLazy Loading not supportedMissing LINQ Operators vs LINQ to SQLGenerated SQL unreadableN-Tier difficult
Poor support for Stored ProceduresSlide19
SummaryEntity Framework 4.0 is rather nice!We continue to listen and improveResourcesEntity Framework 4.0 Resources
http://bit.ly/ef4resources
Entity Framework Team Blog
http://blogs.msdn.com/adonet/
Entity Framework Design Blog
http://blogs.msdn.com/efdesign/Slide20
question & answerSlide21
www.microsoft.com/teched
Sessions On-Demand & Community
http://microsoft.com/technet
Resources for IT Professionals
http://microsoft.com/msdn
Resources for Developers
www.microsoft.com/learning
Microsoft Certification & Training Resources
Resources
Required Slide
Speakers,
TechEd 2009 is not producing
a DVD. Please announce that
attendees can
access session
recordings at TechEd Online. Slide22
Related ContentDAT04-IS Patterns with the Entity Framework Tue 11/10 9:00-10:15 WIA404 Data Driven Microsoft ASP.NET Web Forms Applications Wed 11/11 17:30-18:45
DAT202 What's New in ADO.NET Data Services Mon 11/9, 9:00-10:15
Required Slide
Speakers,
please list the Breakout Sessions,
TLC Interactive Theaters and Labs
that are related to your session.Slide23
Complete an evaluation on
CommNet
and enter to win an Xbox 360 Elite!Slide24
©
2009 Microsoft
Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation.
MICROSOFT
MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Required Slide