6. Database First Existing Database / DBA Maximum control Full T4 Template support (Self Tracking etc.) Not great with large models (50+ tables) Source Control merging headaches (XML)
7. Model First Generate Database / Migrate Like to “Draw” model / Designer Fan Less database centric Full T4 Template support Source Control merging nightmare (XML)
8. Code First Code Oriented / Dumb down DB No automated migration support (vNext) No T4 Template support / Self Tracking (yet) Source Control Branch friendly Cross EDMX easy No SP’s, Compiled Queries
9. Should have been V1 Simplifies Discoverability Does not replace Needed backward compatibility Wraps ObjectContext ObjectContext accessible DbContext DbSet ObjectContext ObjectSet Entity Client Conceptual / Mapping / Logical DbContext & DbSet Recommended for all approaches Use ObjectContext only when needed.
13. Resources You can find Slides for EF4.1 Code First and DB Context here http://www.slideshare.net/omarq/entity-framework41codefirst and the code is here http://msdn.microsoft.com/en-us/data/gg685467 Entity Framework Videos http://msdn.microsoft.com/en-us/data/cc300162 Nuget.org the NuGet Package Manager Elmahhttp://code.google.com/p/elmah/ Glimpse http://getglimpse.com/ Nerddinner reloaded http://weblogs.asp.net/scottgu/archive/2010/07/16/code-first-development-with-entity-framework-4.aspx Microsoft Web Platform Installer http://www.microsoft.com/web/downloads/platform.aspx