Skip to content

Instantly share code, notes, and snippets.

@kieransenior
Created August 9, 2011 11:33
Show Gist options
  • Save kieransenior/1133812 to your computer and use it in GitHub Desktop.
Save kieransenior/1133812 to your computer and use it in GitHub Desktop.
Full example of NH in use
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);
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment