Skip to content

Instantly share code, notes, and snippets.

@ferventcoder
Created December 7, 2009 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ferventcoder/250857 to your computer and use it in GitHub Desktop.
Save ferventcoder/250857 to your computer and use it in GitHub Desktop.
public class TradeMapping : ClassMap<Trade>
{
public TradeMapping()
{
HibernateMapping.Schema("dbo");
Table("Trades");
Not.LazyLoad();
HibernateMapping.DefaultAccess.Property();
HibernateMapping.DefaultCascade.SaveUpdate();
Id(x => x.id).Column("Id").GeneratedBy.Identity().UnsavedValue(0);
Map(x => x.bob_is_cool);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment