Productivity Improvements for the Entity Framework

Background We’ve been hearing a lot of good feedback on the recently released update to the Entity Framework in .NET 4. This release marks a significant advancement from the first release that shipped with .NET 3.5 SP1.  I’m not going to spend time here talking about what’s new, but you can check here to see for…

51

Conventions for Code First

  The latest preview of Code First allows you to describe a model using C# or VB.Net classes. The basic shape of the model is detected by convention and then a fluent API can be used to further refine your model. We recently posted about our plans to support Data Annotations as another way to…

48

Code Only – Further Enhancements

We’ve come a long way since the last post on Code-Only. So it’s high time for another update. We’ve been working really hard on Code-Only revving the design, and spotting missing capabilities and responding to feedback both internal and external etc.  The current plan still holds.  Code-Only will not be in .Net 4.0 with the…

43

Extending the Entity Framework Provider Model to support DDL

As part of the first previews of Code-Only we shared some code to create a database: // Create a context using code-only using (var mycontext = builder.Create(dbConnection)) {     // Create the database if it doesn’t already exist     if (!myContext.DatabaseExists())         myContext.CreateDatabase();     // Standard EF code goes here. } But in the first…

7

Code Only Enhancements

We’ve been working hard on Code Only since the first preview. In the next release you will be able to specify: Navigation Property Inverses. Property Facets, like Nullability, MaxLength, Precision etc. Property to Column mappings Type to Table(s) mappings Inheritance strategy Encapsulate configuration The rest of this post will drill into each of these features…

30

Code Only

There are currently two ways to get Entity Framework apps up and running, we call these Database First and Model First respectively. Database First has been with us since .NET 3.5 SP1, and involves reverse engineering an Entity Data Model from an existing database. Model First is new to Visual Studio 2010/.NET 4.0 and allows…

32