开发者

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

开发者 https://www.devze.com 2023-01-24 06:31 出处:网络
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 Schema

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

精彩评论

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