Skip to content

Instantly share code, notes, and snippets.

@jagregory
Created April 13, 2011 11:37
Show Gist options
  • Save jagregory/917387 to your computer and use it in GitHub Desktop.
Save jagregory/917387 to your computer and use it in GitHub Desktop.
public class MyClassMap: ClassMap<MyClass>
{
public MyClassMap()
{
Id(x => x.Id)
.Column("MyClassId")
.GeneratedBy.HiLo("100");
Map(x => x.Something)
.Length(150);
}
}
public class MyClassMap: ClassMapping<MyClass>
{
public MyClassMap()
{
Id(x => x.Id, map =>
{
map.Column("MyClassId");
map.Generator(Generators.HighLow, gmap => gmap.Params(new { max_low = 100 }));
});
Property(x => x.Something, map => map.Length(150));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment