EF 4.1 Code First Walkthrough

This post will provide an introduction to Code First development and how it can be used with the new DbContext API surface. Code First allows you to define your model using C# or VB.Net classes, optionally additional configuration can be performed using attributes on your classes and properties or by using a Fluent API. Your model can be used to generate a database schema or to map to an existing database.

 

http://blogs.msdn.com/b/adonet/archive/2011/03/15/ef-4-1-code-first-walkthrough.aspx
posted @ 2011-11-09 08:19  海洋——海纳百川,有容乃大.  阅读(237)  评论(0编辑  收藏