使用Fluent NHibernate生成表索引
问题描述:
是否可以使用Fluent NHibernate生成表索引以及数据库模式的其余部分?我希望能够通过自动构建过程来生成完整的数据库DDL。
Is it possible to generate table indexes along with the rest of the database schema with Fluent NHibernate? I would like to be able to generate the complete database DDL via an automated build process.
答
Map(x => x.Prop1).Index("idx__Prop1");