views:

329

answers:

1

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.

A: 

http://code.google.com/p/fluent-nhibernate/issues/detail?id=392 http://www.mail-archive.com/[email protected]/msg05728.html

nabeelfarid