Override for fluent NHibernate for long text strings nvarchar(MAX) not nvarchar(255)

前端 未结 6 1660
时光说笑
时光说笑 2020-12-09 07:26

When ever you set a string value in fluent NHibernate it alwasy sets the DB vales to Nvarchar(255), I need to store quite a lot of long string which are based on user inputs

6条回答
  •  半阙折子戏
    2020-12-09 08:21

    Probably you are using "NHibernate validator" as well. If yes, Fluent NHibernate will consider all of the NHibernate validator related data annotations automatically, including string length, not null, etc.

提交回复
热议问题