Created
August 9, 2011 11:33
-
-
Save kieransenior/1133812 to your computer and use it in GitHub Desktop.
Full example of NH in use
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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