Try: HasMany(x => x.Claims) .ForeignKey(key => { key.Columns.Add("SchemeCode", "MainMemberNumber"); }) .Cascade.AllDeleteOrphan() .Inverse();
Ideally we'd be able to detect your composite key usage, but that doesn't happen yet; everything else we should be able to infer. On Nov 1, 9:59 pm, Francois Botha <igi...@gmail.com> wrote: > Hi, > > I also need some help converting the .AsMap method to the new format. > > Here is my old code: > HasMany(x => x.Claims) > .KeyColumns.Add("SchemeCode", "MainMemberNumber") > .AsMap(x => x.ChildNumber) > .Cascade.AllDeleteOrphan() > .Inverse(); -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibern...@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.