title: Set MaxLength on BaseClass for POCO objects with Fluent API
body: <p>I have a base class, like this  for my POCO objects</p>
  
  <pre><code> public abstract class BASE
      {
          protected BASE()
          {
              Created = DateTime.UtcNow;
              Modified = Created;
  
          }
  
          public int id { get; set; }
          public DateTime Created { get; set; }
          public DateTime Modified { get; set; }
          [MaxLength(50)]
          public string CreatedBy { get; set; }
          [MaxLength(50)]
          public string ModifiedBy { get; set; }
      }
  </code></pre>
  
  <p>What I want to do is set the "MaxLength(50)" attributes with fluent API.</p>
  
  <p>But if I do this in the <code>Context.ModelCreating</code></p>
  
  <pre><code>modelBuilder.Entity&lt;BASE&gt;().Property(p =&gt; p.CreatedBy).HasMaxLength(50);
  modelBuilder.Entity&lt;BASE&gt;().Property(p =&gt; p.ModifiedBy).HasMaxLength(50);
  </code></pre>
  
  <p>then "BASEs" table get generated in the database - which I want to avoid.</p>
  
  <p>What am I missing, to be able to set these constraints in Fluent API ?</p>