Is it possible to use a constructor with EF entities?
I want to add a new instance of an Entity Framework entity and add it to a List<>
i.e.
List<MyObject> objectList = new List<MyObject>();
objectList.Add(new MyObject( "property" , 1);
instead of
List<MyObject> objectList = new List<MyObject>();
MyObject object = new MyObject();
object.Name = "property1";
object.ID = 1;
objectList.Add(object);