title: Initialize new instance of an entity framework object with constructor?
body: <p>Is it possible to use a constructor with EF entities?</p>
  
  <p>I want to add a new instance of an Entity Framework entity and add it to a List&lt;></p>
  
  <p>i.e.</p>
  
  <pre><code>List&lt;MyObject&gt; objectList = new List&lt;MyObject&gt;();
  objectList.Add(new MyObject( "property" , 1);
  </code></pre>
  
  <p>instead of</p>
  
  <pre><code>List&lt;MyObject&gt; objectList = new List&lt;MyObject&gt;();
  MyObject object = new MyObject();
  object.Name = "property1";
  object.ID = 1;
  objectList.Add(object);
  </code></pre>