/// <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="purchaseDate">Initial value of the PurchaseDate property.</param>
 /// <param name="purchase_Company">Initial value of the Purchase_Company property.</param>
 /// <param name="rowVersion">Initial value of the RowVersion property.</param>
 public static Purchase CreatePurchase(global::System.Int32 id, global::System.DateTime purchaseDate, global::System.Int32 purchase_Company, global::System.Byte[] rowVersion)
 {
     Purchase purchase = new Purchase();
     purchase.Id = id;
     purchase.PurchaseDate = purchaseDate;
     purchase.Purchase_Company = purchase_Company;
     purchase.RowVersion = rowVersion;
     return purchase;
 }