Skip to content

Instantly share code, notes, and snippets.

@kieransenior
Created August 9, 2011 11:26
Show Gist options
  • Select an option

  • Save kieransenior/1133801 to your computer and use it in GitHub Desktop.

Select an option

Save kieransenior/1133801 to your computer and use it in GitHub Desktop.

Revisions

  1. Kieran Senior created this gist Aug 9, 2011.
    7 changes: 7 additions & 0 deletions nh32-example-mapping.cs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    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());