更新时间:2023-02-07 14:57:47
目前(EF 4.1 CTP)EF code首先没有这样的选择。它总是滴,如果你更改了模型的表。
Currently (EF 4.1 CTP) EF Code First doesn't have that option. It always drops a table if you made changes to model.
更新:
EF 4.1 RTM允许您创建一个自定义数据库初始化,并指定数据库对象和数据播种的创建。
EF 4.1 RTM allows you to create a custom database initializer and specify creation of db objects and data seeding.