I have tried to simplify the data model. Creating by my hand the third 
table, and avoiding to use many to many, so I have define a IList element 
and a mapping hasMany

The idea is to try the following:

One Email has a list of Destiny_Person:

public virtual IList<Destiny_Person> Destiny_Persons {get; set; }

and the mapping:
mapping.HasMany(x => x.Destiny_Persons ).Inverse().Cascade.All();

This does not work properly neither because I save the email with a couple 
of elements in the list, the email is saved, the list of elements are saved 
as well but without the foring_key attributte. I see in the log the insert 
of the email and the inserts of the destiny_persons but nhibernate do not 
insert the column email_Id.

:(((


-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/fluent-nhibernate.
For more options, visit https://groups.google.com/d/optout.

Reply via email to