How does one make NHibernate stop using nvarchar(4000) for insert parameter strings?

后端 未结 4 2028
梦谈多话
梦谈多话 2021-02-14 09:38

I need to optimize a query that is being produced by a save (insert query) on a domain entity. I\'ve configured NHibernate using Fluent NHibernate.

Here\'s the query ge

4条回答
  •  暖寄归人
    2021-02-14 10:27

    Specify the Type as NHibernateUtil.AnsiString with a Length instead of using a CustomSqlType.

提交回复
热议问题