title: Setting MaxLength for all strings in Entity Framework code first
body: <p>I'm developing a code-first database, using Entity Framework 6.</p>
  
  <p>I know I can set <code>[MaxLength(myLen)]</code> on the property of a model.</p>
  
  <p>What I wondered, is if this is possible to do in a filter or a custom attribute, so that all strings take on a default, of say 250, unless specified directly on the property.</p>
  
  <p>Failing this, is there a way to change the default of <code>nvarchar(max)</code>?</p>