only My site

Wednesday, September 14, 2011

Entity Framework 4.1 - Code First

The Entity Framework 4.1 includes two new main features: DbContext API and Code First.

The DbContext API is a simplified abstraction over the existing ObjectContext type and a number of other types that were included in previous releases of the Entity Framework. The DbContext API surface is optimized for common tasks and coding patterns. Common functionality is exposed at the root level and more advanced functionality is available as you drill down through the API.

Code First is a new development pattern for the Entity Framework that provides an alternative to the existing Database First and Model First patterns. Code First lets you define your model using CLR classes; you can then map these classes to an existing database or use them to generate a database schema.

Source : http://www.sandeepsachan.com/

No comments: