title: Specify max length attribute to match varchar(max)
body: <p>I have a model like so:</p>
  
  <pre><code>public int Id { get; set; }
  
  [Required]
  [StringLength(50, MinimumLength = 3)]
  public string Title { get; set; }
  
  [Required]
  [StringLength(50, MinimumLength = 3)]
  public string Slug { get; set; }
  
  [Required]
  [StringLength(100, MinimumLength = 3)]
  public string Body { get; set; }
  </code></pre>
  
  <p>As you can see for the <code>Body</code>, I set a limit of 100, but in the database this column is <code>varchar(max)</code>. What can I put for length to match the column's <code>varchar(max)</code> ?</p>