Kamis, 19 April 2012

Fluent NHibernate - How do I create a one to many mapping which has a bridge table in the middle?

How do I create a one to many mapping which has a bridge table in the middle? I basically have 3 tables: Items, Tags, and TagsToItems. Each Item can have many Tags as defined by the TagsToItems table. How do I set up this mapping correctly using Fluent NHibernate? I've been playing with HasMany but haven't quite figured out how this works with a bridge table. HasMany(x => x.Tags).Table("

0 comments:

Posting Komentar