是否有可能在使用SchemaExport工具时控制生成的对象。例如,如果我有用于EntityA、EntityB和EntityC的NH映射文件,我如何才能将C从创建中排除?
罗伯托-
发布于 2009-06-30 20:46:25
如何使用SchemaUpdate而不是SchemaExport,SchemaUpdate将只更新模式。
或者,如果您使用NH2.1,您可以将schema-action="none“添加到您的映射中:
http://nhforge.org/blogs/nhibernate/archive/2008/12/15/customizing-schema-export-with-schema-action.aspx
https://stackoverflow.com/questions/1064055
复制相似问题