title: Force Entity Framework 6 (EF6) to use nvarchar(MAX)
body: <p>I thought this would be easy, but...</p>
  
  <p>How do you force EF6 to use <code>nvarchar(MAX)</code>?</p>
  
  <p>I've tried:</p>
  
  <pre><code>[Column(TypeName = "nvarchar(MAX)")]
  </code></pre>
  
  <p>and </p>
  
  <pre><code>[Column(TypeName = "nvarchar")]
  [MaxLength()]
  </code></pre>
  
  <p>and </p>
  
  <pre><code>modelBuilder.Entity&lt;Date&gt;().Property(o =&gt; o.test).HasColumnType("nvarchar(MAX)");
  </code></pre>
  
  <p>I'm using EF6.2.0 and SQL2014 Express</p>