Hi all,

I search this list and StackOverflow and nowhere could I get a good, solid 
explanation of exactly how .AsTernaryAssociation() works. Lots of posts 
that I did find have conflicting statements. My guess is that the 
implementation of ternary associations evolved over time.

I'd appreciate it if someone can post a simple example and explanation of a 
ternary association (please pre-test your code), and a bonus would be to 
explain the finer tweaks that are possible. In return, I will consolidate 
all your feedback and compile a page for the Fluent NHibernate Wiki on this 
subject.

Some questions I have around .AsTernaryAssociation() :

   - Is .AsMap() required or is it ignored? 
   - If it's used, what does .AsMap(null) imply (found that in some posts)?
   - How does HasMany(x => x.stuff).AsTernaryAssociation() vs HasManyToMany(x 
   => x.stuff).AsTernaryAssociation()  work? What's the difference?
   - For a many-to-many ternary association, is the HasManyToMany statement 
   required from all sides (i.e. in all classes)?
   - It seems the default many-to-many table name is 
   KeyValuePair`2ToMyClassName. I can override it with .Table() but is that by 
   design or did I do something wrong?

Or feel free to add anything else.

thanks,
Francois

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/fluent-nhibernate/-/H1-CycX9U-cJ.
To post to this group, send email to fluent-nhibernate@googlegroups.com.
To unsubscribe from this group, send email to 
fluent-nhibernate+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en.

Reply via email to