开发者

How can I remove "inverse" that was added by fluent-nhibernate convention?

开发者 https://www.devze.com 2023-01-25 13:24 出处:网络
I have the following HasMany convention: instance.Key.Column( instance.EntityType.Name + \"Fk\" ); instance.Inverse();

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消