Upload
jamil-parmeter
View
219
Download
2
Tags:
Embed Size (px)
Citation preview
The ADO.NET Entity Framework 4
Shyam Pather ([email protected])Development ManagerMicrosoftSession Code: DTL402
Session Objectives And Takeaways
Discuss the Entity FrameworkHistoric PerspectiveImprovements in Visual Studio 2010Priorities Post Visual Studio 2010
Key TakeawaysEntity Framework is responding to customer feedback and is ready for prime time.Microsoft is investing in a modeling platform and Entity Framework will be the ORM stack for your model.
History of the Entity Data Model Object Spaces, Microsoft Business Framework and WinFS were pre-Entity Framework development efforts
The Entity Data Model (EDM) emerged out of this as a way to unify data models across Microsoft
Entity FrameworkADO.NET Data Services (Astoria)Reporting ServicesAnalysis ServicesSystem ManagementEtc..
What is this EDM thing?
Describe your model using basic concepts of “Entity” and “Association”
Entity represents a “Thing”Association represents the “Relationship” between these Entities
EDM builds on these two conceptsDefine a domain model that can map to classes & tables and that can be rationalized with other models.
EDM & Entity Framework?
The Entity Framework (EF) is an Object Relational Modeling tool leveraging the EDM
Focus on your domain, not how to persist!EDM is used to describe your model.
Allows different rate of change between database and code!
EF uses a storage model and mapping to enable this.
Vote of no Confidence
Entity Framework in 3.5 SP1 is:
Too complex. Too many steps are required.Too many restrictions. I want control over my code.Not in sync with the way I work: TDD, N-Tier, Patterns
Pain Points in v3.5SP1
Pluralization/SingularizationForeign KeysModel FirstLazy LoadingAdditional LINQ OperatorsL2S Features & PatternsSQL Gen Improvements
Entity Framework Today:Improved Communication
Entity Framework Team Bloghttp://blogs.msdn.com/adonet/Entity Framework Design Blog http://blogs.msdn.com/efdesign/P&P Guidancehttp://dataguidance.codeplex.com/Increase feedback through Feature CTPs
Entity Framework in .NET 4
Improvements:Model FirstT4 Templates to control code generationSupporting DDD approach with POCO
Persistence IgnoranceRepository pattern
Query ImprovementsLazy LoadingDisconnected API’s to enable N-tier
Feature CTPs
What?Preview of features coming in a future releaseAll built on public APIs
Nothing you couldn’t do yourself
Feature CTP1POCO templateSelf tracking entitiesCode Only
Entity Framework - Tomorrow
We will soon ship EF 4 Beta 2 with:Foreign Key supportLazy Loading by defaultEtc..…
We are planning a refresh of the Feature CTP around Beta 2 with:
Mapping configuration inside Code Only.
www.microsoft.com/teched
International Content & 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 Tech·Ed Africa 2009 sessions will be made available for download the week after the event from: www.tech-ed.co.za
Track Resources
ADO.NET Team Blog: http://blogs.msdn.com/adonet/
Entity Framework Design Blog: http://blogs.msdn.com/efdesign/
Daniel Simmons’s Blog: http://blogs.msdn.com/dsimmons/
Visual Studio Data Blog: http://blogs.msdn.com/vsdata/
Related ContentSessions:•DTL312: The ADO.NET Entity Framework: Tips & Tricks
•DTL208: An Introduction to the ADO.NET Data Services Framework v1.5
•DTL401: How LINQ Works: A Deep Dive into the Microsoft Visual Basic and C# Implementations
Whiteboard Sessions:•WTB211: A Strategic Comparison of Data Access Technologies from Microsoft
Hotlabs:•DTL20H: Application Development with the ADO.NET Entity Framework in the Microsoft .NET Framework 4
© 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.