Skip to content

Instantly share code, notes, and snippets.

@drmohundro
Created May 19, 2009 17:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drmohundro/114241 to your computer and use it in GitHub Desktop.
Save drmohundro/114241 to your computer and use it in GitHub Desktop.
Mapping for Blog with Fluent NHibernate
public class BlogMap : ClassMap<Blog>
{
public BlogMap()
{
Id(x => x.Id).GeneratedBy.Identity();
Map(x => x.Title);
Map(x => x.Subtitle);
Map(x => x.AllowsComments);
Map(x => x.CreatedAt);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment