Open jasondentler opened 10 years ago
Can you please provide full example of your code? If that's not a public project, you can email me. By the way, which version of Fluent are you using?
And it would be great if you provide a reason why you're trying to remove one2many. What behaviour are you after?
Using an
IHasManyConvention
convention as follows, I can almost generate the correct mapping. However, I can't remove theone-to-many
element.The
one-to-many
element is added by this code: https://github.com/jagregory/fluent-nhibernate/blob/master/src/FluentNHibernate/Automapping/Steps/CollectionStep.cs#L73This is the closest I've been able to come to my desired mapping. I can't kill off the one-to-many with a convention.