I’ve been working with Paul Batum for a while on Fluent NHibernate. He’s working on semantic model while I am trying to make it work against NHibernate mapping meta. I’ve tried several times but i didn’t like the things I had, I was almost retiring from FNH. Below is the mapping that I first tried to make work.
public class PersonMap : ClassMap<Person>
{
public PersonMap()
{
Id(x => x.Id);
Map(x => x.Name)
.WithLengthOf(30)
.CanNotBeNull();
Map(x => x.Age)
.CanNotBeNull();
}
}
And thankfully made it work.
This made my day, and you can’t guess how happy I am.
fluent nhibernate