title: Fluent NHibernate's Length property not working on update
body: <p>I have the next mapping, where I specify the length of some string fields:</p>
  
  <pre><code>public ResolutionMap()
  {
    Schema("dbo");
    Table("Resolution");
    Id(x =&gt; x.IdResolution, "resolution_id").UnsavedValue(0).GeneratedBy.Identity();
    Component(x =&gt; x.Store, m =&gt;
      {
        m.Map(y =&gt; y.StoreCodeId, "store_code_id");
        m.Map(y =&gt; y.StoreCode, "store_code").Length(10);
      }
    );
    Map(x =&gt; x.ResolutionData, "resolution_data").Length(42);
  }
  </code></pre>
  
  <p>However, when I watch the update query executed at the SQL Server Profiler, I see that the length set on the mapping is not respected at all on the parameter declaration:</p>
  
  <pre><code>exec sp_executesql
    N'UPDATE dbo.Resolution SET resolution_data = @p0, store_code_id = @p1, store_code = @p2 WHERE resolution_id = @p3',
    N'@p0 nvarchar(4000),@p1 int,@p2 nvarchar(4000),@p3 int',
    @p0=N'Test',@p1=89,@p2=N'ST000003',@p3=275
  </code></pre>
  
  <p>Why could this be happening? I need to set the length because this slows the update process.</p>
  
  <p>I am currently using Fluent NHibernate 1.3.0.733 and NHibernate 3.3.1 over .NET Framework 3.5.</p>