15 lines
363 B
C#
15 lines
363 B
C#
|
using NHibernate.Mapping.ByCode;
|
||
|
using NHibernate.Mapping.ByCode.Conformist;
|
||
|
|
||
|
namespace ConsoleApp1.Model
|
||
|
{
|
||
|
public class PersonMap : ClassMapping<Person>
|
||
|
{
|
||
|
public PersonMap()
|
||
|
{
|
||
|
Id(x => x.Id, m => m.Generator(Generators.GuidComb));
|
||
|
Property(x => x.FirstName);
|
||
|
Property(x => x.LastName);
|
||
|
}
|
||
|
}
|
||
|
}
|