Presentation is loading. Please wait.

Presentation is loading. Please wait.

Eric Nelson (or )http://bit.ly/ericnelson

Similar presentations


Presentation on theme: "Eric Nelson (or )http://bit.ly/ericnelson"— Presentation transcript:

1 Eric Nelson eric.nelson@microsoft.com http://geekswithblogs.net/iupdateable (or http://bit.ly/ericnelson )http://bit.ly/ericnelson http://twitter.com/ericnel http://twitter.com/ukmsdn Developer Evangelist Microsoft UK

2 Were you on twitter last Dec? http://twitter.com/ericnel

3 Agenda Quick recap of the journey so far Entity Framework 4.0 Drill Down Lots of demos

4 Object Relational Mapping Many 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 SP1

5 ADO.NET Entity Framework Recap Tools 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 Rows in Tables Objects in Applications Objects in Applications

6 Entity Framework 1.0 Too many pain points The designer! Model First not supported Poor support for Stored Procedures No Pluralization/Singularization Foreign Keys hidden Lazy Loading not supported Missing LINQ Operators vs LINQ to SQL Generated SQL unreadable No support for Plain Old CLR Objects N-Tier difficult

7 Entity Framework 4.0 Removing the friction Better Tools and Design Experience More powerful/flexible runtime And Persistence Ignorance* Code Only* N-Tier* Note: * Delivered in.NET Framework 4 and a separate download

8 Better Tools and Design Experience Model First Templated code generation Stored Procedures Pluralization/Singularization Complex Types Better delete and search

9 Model First and Templated Code Generation

10 More powerful/flexible runtime Lazy Loading (Deferred Loading in Beta 1 ) Foreign Keys surfaced More complete LINQ implementation ExecuteStoreQuery EntityFunctions and SqlFunctions Improvements to generated SQL

11 Deferred Loading, Functions, Generated SQL

12 http://blogs.msdn.com/adonet/archive/2009/08/05/improvements-to-the-generated-sql-in-net-4-0-beta1.aspx

13 Persistence Ignorance First class support for Persistence Ignorance No modifications to your classes!

14 Persistence Ignorance

15 Code Only Create the database from the classes No model Convention to config

16 Code Only

17 N-Tier Self Tracking Entities

18 N-Tier

19 Entity Framework The designer! No support for Plain Old CLR Objects No Pluralization/Singularization Foreign Keys hidden Model First not supported Lazy Loading not supported Missing LINQ Operators vs LINQ to SQL Generated SQL unreadable N-Tier difficult Poor support for Stored Procedures

20 Summary


Download ppt "Eric Nelson (or )http://bit.ly/ericnelson"

Similar presentations


Ads by Google