Skip to content

Instantly share code, notes, and snippets.

@kieransenior
Created August 9, 2011 11:28
Show Gist options
  • Save kieransenior/1133804 to your computer and use it in GitHub Desktop.
Save kieransenior/1133804 to your computer and use it in GitHub Desktop.
Full mapping example
mapper.Class<Person>(c =>
{
c.Id(x => x.PersonID, map =>
{
map.Column("PersonID");
map.Generator(Generators.Identity);
});
c.Property(x => x.Name);
c.Property(x => x.Address);
c.Property(x => x.Description);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment