main
 1using FluentNHibernate.Mapping;
 2using presentation.windows.server.domain;
 3
 4namespace presentation.windows.server.orm.mappings
 5{
 6    public class PersonMapping : ClassMap<Person>
 7    {
 8        public PersonMapping()
 9        {
10            Id(x => x.id).GeneratedBy.GuidComb();
11            Map(x => x.first_name, "first_name");
12            Map(x => x.last_name, "last_name");
13            Map(x => x.date_of_birth, "date_of_birth").CustomType<DateUserType>();
14        }
15    }
16}