title: How to set default value for POCO's in EF CF?
body: <p>In Entity Framework Code First approach, how do you set a default value for a property in the POCO's EntityConfiguration class?</p>
  
  <pre><code>public class Person
  {
      public int Id { get; set; }
      public string Name { get; set; }
      public DateTime CreatedOn { get; set; }
  }
  
  public class PersonConfiguration : EntityConfiguration&lt;Person&gt;
  {
      public PersonConfiguration()
      {
          Property(p =&gt; p.Id).IsIdentity();
          Property(p =&gt; p.Name).HasMaxLength(100);
  
          //set default value for CreatedOn ?
      }
  }
  </code></pre>