我使用以下映射到一個序列化對象存儲到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