/// <summary>
 /// Deprecated Method for adding a new object to the Payments EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPayments(Payment payment)
 {
     base.AddObject("Payments", payment);
 }
 /// <summary>
 /// Create a new Payment object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="rate">Initial value of the Rate property.</param>
 /// <param name="hours">Initial value of the Hours property.</param>
 public static Payment CreatePayment(global::System.Int32 id, global::System.Decimal rate, global::System.Decimal hours)
 {
     Payment payment = new Payment();
     payment.ID = id;
     payment.Rate = rate;
     payment.Hours = hours;
     return payment;
 }