C# FluenNHibernate-脱水属性值时出错

C# FluenNHibernate-脱水属性值时出错,c#,nhibernate,fluent-nhibernate,C#,Nhibernate,Fluent Nhibernate,我在堆栈溢出上看到了很多这样的错误,并密切关注了答案,但我真的无法在代码中看到同样的问题 我在尝试提交更改时遇到以下异常: {"Error dehydrating property value for MyModel.Field"} 除以下情况外: {"The length of the string value exceeds the length configured in the mapping/parameter."} 我有一个模型的映射覆盖,如下所示: mapping.Map(x

我在堆栈溢出上看到了很多这样的错误,并密切关注了答案,但我真的无法在代码中看到同样的问题

我在尝试提交更改时遇到以下异常:

{"Error dehydrating property value for MyModel.Field"}
除以下情况外:

{"The length of the string value exceeds the length configured in the mapping/parameter."}
我有一个模型的映射覆盖,如下所示:

 mapping.Map(x => x.Field).Length(10000); 
数据库中的列是
nvarchar(MAX)

如果我在notepad++中检查字段的值,它会显示长度为5355,堆栈跟踪不会显示更多信息:(


我真的认为我已经涵盖了所有的角度,为什么我仍然得到这个错误?

这是一个关于NHibernate处理
nvarchar(max)
的已知问题

我记得去年看到这个:

因此,这个答案与流利的NHibernate的解释和解决方法有联系