I'm trying to set up a many-to-many mapping in Fluent Nhibernate, which has a where clause attached to a child table.
This is basically how it should work:
HasManyToMany(p => p.Images) .Table("ProductImages") .ParentKeyColumn("ProductID") .ChildKeyColumn("ImageID") .Where("ImageTypeID = 2");
The ImageTypeID column is in the Images table, but NHibernate assumes that it is part of the ProductImages table. Any idea how I can point this out?
Thanks!
source share