/// <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="type">Initial value of the Type property.</param>
 /// <param name="paidAmount">Initial value of the PaidAmount property.</param>
 /// <param name="paymentDate">Initial value of the PaymentDate property.</param>
 /// <param name="orderId">Initial value of the OrderId property.</param>
 /// <param name="employeeId">Initial value of the EmployeeId property.</param>
 /// <param name="systemId">Initial value of the SystemId property.</param>
 public static Payment CreatePayment(global::System.Guid id, global::System.Int16 type, global::System.Double paidAmount, global::System.DateTime paymentDate, global::System.Guid orderId, global::System.Guid employeeId, global::System.String systemId)
 {
     Payment payment = new Payment();
     payment.Id = id;
     payment.Type = type;
     payment.PaidAmount = paidAmount;
     payment.PaymentDate = paymentDate;
     payment.OrderId = orderId;
     payment.EmployeeId = employeeId;
     payment.SystemId = systemId;
     return payment;
 }