How to create a Multi-Column Index and/or Unique Constraint using NHibernate Mapping or Fluent NHibernate.
How to create a Multi-Column Index and/or Unique Constraint using NHibernate Mapping or Fluent
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
assign a index/unique constraint name to more then one property
Theoretical it would also work with having more then one index on the same entity:
But there is a bug. I also wrote a patch. if you are interested in this, please vote for the bug or add comment or something.
Edit: just checked what happened to the bug. It is fixed in version 2.1.0, so it should perfectly work now. Many thanks to the great NHibernate developer team!