protected override void OnBuildMap(MappingContext mappingContext) { mappingContext.Map <Person>() .ToTable("people"); mappingContext.Map <Person>() .Member(person => person.Id) .HasName("id") .IsPrimaryKey(); mappingContext.Map <Person>() .Member(person => person.FirstName) .HasName("first_name") .IsNotNull(); }
protected override void OnBuildMap(MappingContext mappingContext) { mappingContext.Map<Person>() .ToTable("people"); mappingContext.Map<Person>() .Member(person => person.Id) .HasName("id") .IsPrimaryKey(); mappingContext.Map<Person>() .Member(person => person.FirstName) .HasName("first_name") .IsNotNull(); }