Set has many Skus
Sku has many Sets
DB table
Set <-> Setskus <-> Skus
mapping.HasManyToMany(m => m.Skus) .Table("SetSkus") .ParentKeyColumn("SetId") .ChildKeyColumn("SKUId") .Not.LazyLoad(); mapping.HasMany(m => m.Images).Cascade.All(); mapping.HasManyToMany(m => m.Sets) .Table("SetSkus") .ParentKeyColumn("SKUId") .ChildKeyColumn("SetId") .Inverse() .Not.LazyLoad();
