/// <summary>
 /// Deprecated Method for adding a new object to the Purchases EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPurchases(Purchase purchase)
 {
     base.AddObject("Purchases", purchase);
 }
 /// <summary>
 /// Create a new Purchase object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="date">Initial value of the Date property.</param>
 /// <param name="user_Id">Initial value of the User_Id property.</param>
 /// <param name="product_Id">Initial value of the Product_Id property.</param>
 public static Purchase CreatePurchase(global::System.Int32 id, global::System.DateTime date, global::System.Int32 user_Id, global::System.Int32 product_Id)
 {
     Purchase purchase = new Purchase();
     purchase.Id = id;
     purchase.Date = date;
     purchase.User_Id = user_Id;
     purchase.Product_Id = product_Id;
     return purchase;
 }