Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

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

Revisions

  1. Kieran Senior created this gist Aug 9, 2011.
    14 changes: 14 additions & 0 deletions full-example-nh.cs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    public static ModelMapper GetMappings()
    {
    var mapper = new ModelMapper();

    mapper.Class<YourClass>(yc =>
    {
    // your configurations here, for example:
    yc.Id(x => x.YourClassID, map =>
    {
    map.Column("YourClassID");
    map.Generator(Generators.Identity);
    });
    }
    }