参考资料:http://www.codeproject.com/Articles/37932/Simple-Sample-with-Entity-Framework

http://blogs.msdn.com/b/adonet/archive/2010/07/14/ctp4announcement.aspx

http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=8812

http://blogs.msdn.com/b/adonet/archive/2010/07/14/ctp4piwalkthrough.aspx

 

EntityFramework.dll 安装方法 : http://nuget.org/packages/EntityFramework/

To install EntityFramework, run the following command in the Package Manager Console,“pm->Install-Package EntityFramework")

 code first 迁移、更新数据库

http://blogs.msdn.com/b/adonet/archive/2012/02/09/ef-4-3-code-based-migrations-walkthrough.aspx

 

 

本地下载: (两个示例,第一个示例安装后包含Microsoft.Data.Entity.CTP.dll)

https://files.cnblogs.com/fightLonely/EF.CodeFirst.Walkthrough.zip

https://files.cnblogs.com/fightLonely/EF.PI.Walkthrough.zip

posted on 2012-03-06 16:56  佐伊凡  阅读(488)  评论(0编辑  收藏  举报