日期:2014-05-20  浏览次数:20725 次

Entity Framework 4中的Database-First, Model-First和Code-First
企业项目中大家一般选择哪种模式呢
------解决方案--------------------


http://thedatafarm.com/blog/data-access/model-first-database-first-or-code-first-ndash-update-to-data-points-column/
------解决方案--------------------
如果你的项目是中小型的,需要快速开发的,可以考虑使用Code First,不过每次库结构改变,都要重新生成一次库,比较麻烦,因为会丢失数据库中的原有数据

传统上的开发,还是比较喜欢DataBase First