/// <summary>
 /// Deprecated Method for adding a new object to the PurchasePayments EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPurchasePayments(PurchasePayment purchasePayment)
 {
     base.AddObject("PurchasePayments", purchasePayment);
 }
 /// <summary>
 /// Create a new PurchasePayment object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="purchasePayment_Purchase">Initial value of the PurchasePayment_Purchase property.</param>
 /// <param name="deposit">Initial value of the Deposit property.</param>
 /// <param name="paymentDate">Initial value of the PaymentDate property.</param>
 /// <param name="rowVersion">Initial value of the RowVersion property.</param>
 public static PurchasePayment CreatePurchasePayment(global::System.Int32 id, global::System.Int32 purchasePayment_Purchase, global::System.Decimal deposit, global::System.DateTime paymentDate, global::System.Byte[] rowVersion)
 {
     PurchasePayment purchasePayment = new PurchasePayment();
     purchasePayment.Id = id;
     purchasePayment.PurchasePayment_Purchase = purchasePayment_Purchase;
     purchasePayment.Deposit = deposit;
     purchasePayment.PaymentDate = paymentDate;
     purchasePayment.RowVersion = rowVersion;
     return purchasePayment;
 }