Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>According to the nHibernate documentation, "length" is not an attribute/property of &lt;property&gt; but instead should be used in &lt;column&gt;.</p> <p>This section shows that "length" is not a part of &lt;property&gt; : <a href="http://nhibernate.info/doc/nh/en/index.html#mapping-declaration-property" rel="nofollow noreferrer">http://nhibernate.info/doc/nh/en/index.html#mapping-declaration-property</a></p> <p>This section shows that "length" is a part of &lt;column&gt; : <a href="http://nhibernate.info/doc/nh/en/index.html#toolsetguide-s1-2" rel="nofollow noreferrer">http://nhibernate.info/doc/nh/en/index.html#toolsetguide-s1-2</a></p> <p>That last section (20.1 and the Table 20.1 Summary) shows that "sql-type" is also part of &lt;column&gt; so try one of these variations:</p> <pre><code>&lt;property name="Settings" type="Serializable"&gt; &lt;column name="Settings" not-null="true" length="2147483647"/&gt; &lt;/property&gt; </code></pre> <p>or</p> <pre><code>&lt;property name="Settings" type="Serializable"&gt; &lt;column name="Settings" not-null="true" sql-type="varbinary(max)"/&gt; &lt;/property&gt; </code></pre> <p>Edit:<br> This question seems to be a duplicate of:<br> <a href="https://stackoverflow.com/questions/1098266/how-do-i-get-fluent-nhibernate-to-create-a-varbinarymax-field-in-sql-server">How do I get fluent nhibernate to create a varbinary(max) field in sql server</a></p> <p>but that information is almost 3 years old and the newer version of nHibernate might have corrected for this (I have no way to test this).</p> <p>The following page appears to also be the same issue and is much more recent:<br> <a href="https://stackoverflow.com/questions/4584170/binary-blob-truncated-to-8000-bytes-sql-server-2008-varbinarymax">Binary Blob truncated to 8000 bytes - SQL Server 2008 / varbinary(max)</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload