有没有办法让NHibernate独自留下一些 table ?我有ASPNET Membership表,虽然我希望能够使用NHibernate访问它们,但我不希望SchemaExport删除它们并在重新创建其他表时重新创建它们 . (天哪知道会发生什么)
你需要使用 SchemaAction.None()
SchemaAction.None()
更多信息:http://www.lostechies.com/blogs/rodpaddock/archive/2010/06/29/using-fluent-nhibernate-with-legacy-databases.aspx
1 回答
你需要使用
SchemaAction.None()
更多信息:http://www.lostechies.com/blogs/rodpaddock/archive/2010/06/29/using-fluent-nhibernate-with-legacy-databases.aspx