title: The length of the string value exceeds the length configured in the mapping/parameter
body: <p>I am trying to insert some very long text into a string prop - it worked perfectly fine with LinqToSql, now I have switched over to NHibernate and want to save the same entity, but nHibernate throws the above exception.</p>
  
  <p>How can I fix this?</p>
  
  <p>Originally my props were defined as:</p>
  
  <pre><code>        Map(x =&gt; x.Content, "fT_Content").Nullable();
          Map(x =&gt; x.Fields, "fT_Fields").Nullable();
  </code></pre>
  
  <p>now they are: <strong>this works</strong> but why do I have to do this?</p>
  
  <pre><code>        Map(x =&gt; x.Content, "fT_Content").CustomSqlType("nvarchar(max)").Length(Int32.MaxValue).Nullable();
          Map(x =&gt; x.Fields, "fT_Fields").CustomSqlType("nvarchar(max)").Length(Int32.MaxValue).Nullable();
  </code></pre>
  
  <p>Note: I have the latest nhibernate using nuget.</p>
  
  <p>For ref here are the fields:</p>
  
  <pre><code>    public virtual string Content
      {
          get;
          set;
      }
  
      public virtual string Fields
      {
          get;
          set;
      }
  </code></pre>
  
  <p><strong>I want to avoid</strong> going to live production and all of a sudden inserts stop working on this table....</p>