I have 3 tables Products Category and ProductSets. I want to map those 
tables on one table Images. Example

Products 
{
 Guid Id
 String Name
 IList<Images>
}
Category and ProductSets is the same as Product.
Images
{
Guid Id
String Name
Guid EnityId
other stuff
}
I've tried different ways to map but without results.
Just one mapping helped me for Products, Category and ProductStes is the 
same 

HasMany(x => 
x.Image).Cascade.AllDeleteOrphan().KeyColumn("EntityId").KeyNullable(); 
*But I have problems with updating and deleting Images if some entity is 
deleted or updated, because as I see nhibernate creates just one constraints 
only for Category at all. And this constraint doesn'y allow me add or remove 
images for Products or ProductSets.
Can somebody help me?
*




-- 
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/-/0TG3ACRUHNQJ.
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