开发者

How to make an extension for nvarchar max? Fluent nHibernate + Nhibernate

开发者 https://www.devze.com 2023-02-05 20:06 出处:网络
I been looking around开发者_JAVA百科 for how to do this but I can\'t get it to work. I seen many tutorials that using

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消