title: EF 4.3 code first - How to set default value
body: <p>I'm having an entity like that:</p>
  
  <pre><code>public class Part : Entity
  {
      public int Id { get; set; }
  
      public string Name { get; set; }
  
      public IEnumerable&lt;VersionSection&gt; VersionSections
      {
          get
          {
              return Sections.Where(s =&gt; s is VersionSection).Cast&lt;VersionSection&gt;();
          }
      }
  
      public virtual ICollection&lt;Section&gt; Sections { get; set; }      
  
      public Part()
      {
          this.Sections = new List&lt;Section&gt;();            
      }
  }
  </code></pre>
  
  <p>I would like to set the default value for the Sections collection very time when I create a new instance of Part following to this business:</p>
  
  <ul>
  <li>When creating a Part, a default Section (Name = "Section 1") should be created. This cannot be deleted.</li>
  </ul>
  
  <p>There's no problem on creating a new one, but when getting data from DB, EF create a default instance of Section and also add the data from DB to my entity, so it's wrong.</p>
  
  <p>Any ideas? Thanks</p>