Is there currently a way to use the equivalent of the index-many-to-many
NHibernate tag in Fluent NHibernate?
The mapping I am trying to achieve was generated almost perfectly using AsMap
on a HasManyToMany
, apart from this one element specifying the index in the map:
Generated was:
<index type=...
Should have been:
<index-many-to-many class=...
EDIT: Currently the workaround I am using is to generate the partially incorrect mapping, manually editing the mapping file, commenting out the mapping code and then manually adding the corrected mapping file in place of Fluent NHibernate generating it from the commented out mapping code. Not ideal since any time the mapping changes I need to go through this process again, but once my mappings do not change this will not be so much of an issue.