Is Ef4 Ready For The Real Work

2,824 views

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,824
On SlideShare
0
From Embeds
0
Number of Embeds
58
Actions
Shares
0
Downloads
1
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Is Ef4 Ready For The Real Work

  1. 1. Is Entity Framework 4.0 ready for the real work?<br />Dennis Doomen<br />
  2. 2. Contents<br />What’s new in EF4.0 (CTP3)<br />The test domain model<br />Scenarios for using EF<br />Code First in-depth<br />Comparison with an ORM<br />Conclusion<br />
  3. 3. What’s new in EF4.0?<br />Model-first development<br />Automatic pluralization<br />Foreign keys in models<br />POCO class support<br />Lazy loading<br />T4 Code Generation<br />Template customization<br />IObjectSet<br />Virtual SaveChanges<br />ObjectStateManager control<br />Self-tracking entities<br />SQL generation improvements<br />More LINQ operator support<br />LINQ extensibility<br />ExecuteStoreQuery<br />ExecuteStoreCommand<br />SPROC import improvements<br />Model defined functions<br />WPF designer integration<br />Code-First development<br />
  4. 4. The Domain Model<br />
  5. 5. Scenarios<br />Model-first<br />Standard Generator<br />T4 Entity Object Generator<br />T4 POCO Generator<br />Self-Tracking Generator<br />Model-Once w/ edmx hacking<br />Code First<br />Manual coding<br />
  6. 6. Code First: OO Support<br />Enums<br />Associations vs. .NET collection classes<br />Private fields / encapsulation<br />Inheritance<br />
  7. 7. Code First: OR/M Principals<br />Persistency Ignorance<br />Transparent Persistency<br />Cascading inserts, updates, deletes<br />
  8. 8. Code First: Mapping Support<br />Multi-table Mapping<br />Database generation<br />Fluent Interfaces<br />Conventions-based programming<br />
  9. 9. Code First: Querying<br />LINQ<br />Entity SQL<br />Query Objects<br />Store Query<br />
  10. 10. Code First: Advanced<br />Profiling<br />2nd Level Caching<br />Extensibility<br />
  11. 11. Code First: Database Support<br />Out-of-the-boxSQL Server 2000, 2005, 2008, CE, Azure<br />DataDirectOracle (no client), DB2, SQL Server, Sybase, various mainframe DBs<br />SynergexSynergy DMS<br />DevArt dotConnectOracle, MySql, PostgreSql, SQLite ($99-$1499)<br />
  12. 12. CTP3 vs NHibernate 2.1<br />
  13. 13. CTP3 vs NHibernate 2.1<br />
  14. 14. So, Is it ready?<br />Yes...<br />Designers excellent for RAD<br />Suitable for simple domain models<br />Easy to learn<br />...But<br />Code First (still) too limited for DDD<br />Missing some important features<br />No Go-Live yet<br />
  15. 15. Questions?<br />dennis.doomen@avivasolutions.nl<br />www.twitter.com/ddoomen<br />www.dennisdoomen.net<br />
  16. 16. Resources<br />ADO.NET team blog<br />Julie Lerman’s blog<br />Alex James EF4 Tips<br />Tangible T4 Editor<br />ADO.NET Data Services Team Blog<br />Entity Designer Database Generation Power Pack<br />

×