title: How to extract a part of Property configuration in EF6 Code First to reuse several times?
body: <p>To map a column in EF6 Code First, we use this code for example :</p>
  
  <pre><code>Property(o =&gt; o.Email).HasColumnType("varchar").HasMaxLength(255).IsRequired();
  </code></pre>
  
  <p>To prevent to write several times ".HasColumnType("varchar").HasMaxLength(255)" for all Email columns (for example), I would want to factorise that and define a EMail configuration that I could use each time I need. I would want do that :</p>
  
  <pre><code>Property(o =&gt; o.Email).IsEmailColumn(EMail).IsRequired();
  </code></pre>
  
  <p>How can I do that ?</p>
  
  <p>Thank you.</p>