开发者

Make (Fluent) NHibernate Recreate only specific tables in a database

Is there a way to tell NHibernate to leave some tables alone? I have the ASPNET Membership tables, and while I would like to be开发者_JAVA技巧 able to access them using NHibernate, I don't want SchemaExport to delete them and recreate them while recreating the other tables. (Goodness knows what may happen)


You need to use SchemaAction.None()

More information here: http://www.lostechies.com/blogs/rodpaddock/archive/2010/06/29/using-fluent-nhibernate-with-legacy-databases.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜