using NHibernate.Mapping.ByCode; using NHibernate.Mapping.ByCode.Conformist; namespace ConsoleApp1.Model { public class PersonMap : ClassMapping { public PersonMap() { Id(x => x.Id, m => m.Generator(Generators.GuidComb)); Property(x => x.FirstName); Property(x => x.LastName); } } }