我使用以下映射到一个序列化对象存储到SQL Server 2008:NHibernate的:存储VARBINARY到MAX
<class name="EMSApplication.Data.Domain.Configuration, EMSApplication.Data" table="ems_Configurations" proxy="EMSApplication.Data.Domain.IConfiguration, EMSApplication.Data" lazy="true">
<id name="Id" type="System.Int32">
<column name="Id" not-null="true"/>
<generator class="native"/>
</id>
<property name="Settings" type="Serializable">
<column name="Settings" not-null="true"/>
</property>
</class>
它产生了对列式数据库的VARBINARY(8000)。我怎样才能使用varbinary(max)?
如果我使用:
<property name="Settings" type="Serializable" length="2147483647">
<column name="Settings" not-null="true"/>
</property>
它也被截断为8000我使用NHibernate3.2(不流畅)。
非常感谢你... – 2012-04-14 18:53:09
随时随地......很高兴它的工作:) – 2012-04-14 18:58:18