Skip to content

Instantly share code, notes, and snippets.

@kieransenior
Created August 9, 2011 11:26
Show Gist options
  • Save kieransenior/1133801 to your computer and use it in GitHub Desktop.
Save kieransenior/1133801 to your computer and use it in GitHub Desktop.
NH 3.2 Mapping Configuration
ca.List(x => x.Children, map =>
{
map.Key(k => k.Column("Parent"));
map.Index(i => i.Column("Position"));
map.Cascade(Cascade.All);
},
e => e.OneToMany());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment