I am trying to modify the Automapping conventsion in Fluent NHibernate to use ".AsSet" for OneToMany mappings, rather than ".AsBag" (which, judging from the hbm files exported, appears to be the default).
I have spent hours pouring over the documentation, and I understand that I need to do a
"AutoMap.AssemblyOf<T>().Conventions.Add<CustomType>()"
And I've figured out that CustomType needs to derive from one of the IConvention interfaces, and implement the Apply method. But I am getting completely wrapped around the axle chasing interfaces and types through the ObjectBrowser and trying to figure out exactly which interface it needs to derive from, what the arguments to the Apply method are, and what goes in it.
Thanks for your help.