Sorry for wasting your time but I have found a solution
Bag(x => x.ActorList, bag =>
{
bag.Key(k => k.Column(col => col.Name("MovieId")));
bag.Cascade(Cascade.All | Cascade.DeleteOrphans);
},
action => action.OneToMany());
I hope that it will one day help somebody else. I suppose I need to
look up conventions as it appears this may be the place to help reduce
code,
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.