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.
Generate table indexes using Fluent NHibernate
fluent-nhibernatenhibernatenhibernate-mapping
Related Topic
- Inheritance Mapping with Fluent NHibernate
- R – Export Fluent Nhibernate Schema and Alter Table
- C# – Generate C# entities from existing DB and Fluent NHibernate auto mapping
- Make Fluent NHibernate output schema update to file
- Class Map Generator for Fluent NHibernate
- Map Enum as Int with Fluent NHibernate and NHibernate 3
Best Answer
In more recent versions of Fluent NHibernate, you can call the
Index()
method to do this rather than usingSetAttribute
(which no longer exists):