I have the following HasMany convention:
instance.Key.Column( instance.EntityType.Name + "Fk" );
instance.Inverse();
instance.Cascade.All();
That I am then trying to override to remove the Inverse part of it
mapping.HasMany(x => x.Details).Cascade.All().KeyColumn(mapping.EntityType.Name + "Fk")
Unfortunately this isn't removing the inverse and if I generate the hbmxml files using the ExportTo function it still shows inverse="true".
I have tested that my overr开发者_Python百科ide is being picked up by changing the KeyColumn name and this change does show in the hbmxml files.
How can I remove the Inverse() in the override?
Does .Not.Inverse()
not work?
精彩评论