title: Why does DataAnnotation MaxLength(8192) not work?
body: <p>I am working on a project with Entity Framework 6.1.3 in C#, and I want to set an maximum limit on some binary data.</p>
  
  <p><code>[MaxLength(8192)]</code> does not work is this a bug? There seems to be an upper limit to it. </p>
  
  <p><code>[MaxLength(4096)]</code> this works surprisingly?</p>
  
  <p>Am I using DataAnnotations correctly?</p>
  
  <pre><code>//[MaxLength(4096)] &lt;-- this works
  [MaxLength(8192)]
  public Byte[] MediaData {get; set;}
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>MediaData = c.Binary()
  </code></pre>
  
  <p>Expected:</p>
  
  <pre><code>MediaData = c.Binary(maxLength: )
  </code></pre>
  
  <p>Also tried.</p>
  
  <pre><code>[MaxLength(8192)]    // this does not work either
  public string Text {get; set;}
  </code></pre>
  
  <p>I could fix it manually but It annoys me that DataAnnotations does not work automatically. What are your experiences/recommendations with DataAnnotations?</p>