Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
SchemaExport ツールの使用時に生成されるオブジェクトを制御することはできますか? たとえば、EntityA、EntityB、および EntityC の NH マッピング ファイルがある場合、C を作成から除外するにはどうすればよいですか?
ロベルト.-
SchemaExportの代わりにSchemaUpdateを使用するには、SchemaUpdateはスキーマのみを更新します。
または、NH 2.1を使用している場合は、schema-action="none"をマッピングに追加できます。
http://nhforge.org/blogs/nhibernate/archive/2008/12/15/customizing-schema-export-with-schema-action.aspx