/// <summary>
 /// Create a new Entity2 object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 public static Entity2 CreateEntity2(global::System.Int32 id)
 {
     Entity2 entity2 = new Entity2();
     entity2.Id = id;
     return entity2;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Entity2 EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToEntity2(Entity2 entity2)
 {
     base.AddObject("Entity2", entity2);
 }