I been looking around开发者_JAVA百科 for how to do this but I can't get it to work. I seen many tutorials that using
PropertyMap or IProperty but I can't figure out what using statement to use and VS intellisense does not know either
http://serialseb.blogspot.com/2009/01/fluent-nhibernate-and-nvarcharmax.html
I am using fluent nhibernate and nihbernate 3.0. So did they remove these?
I haven't tested, but try extending PropertyBuilder
, using the method PropertyBuilder.Length(int length)
.
https://github.com/jagregory/fluent-nhibernate/blob/master/src/FluentNHibernate/Mapping/Builders/PropertyBuilder.cs
It seems if I used PropertyPart that works.
精彩评论