Reputation: 11
We are facing an exception while using Nhibernate 3.3.3.GA product version, which says
"The length of the string value exceeds the length configured in the mapping/parameter."
and this is happening after we have upgraded the Nhibernate version from 3.1.0.4000 to 3.3.3.GA version.
I am facing this problem, even after having the length on the column defined. following is the mapping info
<property name="OldValue" type="string">
<column name ="OldValue" length="2147483647" not-null="false" />
</property>
and definitely the length of the string is not exceeding.
Any fix or workaround?
Upvotes: 1
Views: 4454
Reputation: 123851
You probably would like to use nvarchar(max). The mapping could be:
<property name="OldValue" type="StringClob" not-null="false" />
See here more similar how to:
Upvotes: 3