在使用NHibernate时遇到如题中所描述的状况时,将xml文件中字段类型修改为StringClob即可。
e.g. <property name="Description" type="StringClob" column="Description" not-null="true" />
在mapping文件中text类型字段默认为 type="System.String"
在使用NHibernate时遇到如题中所描述的状况时,将xml文件中字段类型修改为StringClob即可。
e.g. <property name="Description" type="StringClob" column="Description" not-null="true" />
在mapping文件中text类型字段默认为 type="System.String"
转载于:https://www.cnblogs.com/zengen/archive/2011/06/01/2065691.html