I am really sorry for wasting your time, but I have found a solution
at last.

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.

-- 
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.

Reply via email to