/// <summary> /// Deprecated Method for adding a new object to the Payments EntitySet. Consider using the .Add method of the associated ObjectSet<T> 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="amount">Initial value of the Amount property.</param> /// <param name="date">Initial value of the Date property.</param> /// <param name="methodOfPayment">Initial value of the MethodOfPayment property.</param> /// <param name="orderID">Initial value of the OrderID property.</param> /// <param name="customerID">Initial value of the CustomerID property.</param> public static Payment CreatePayment(global::System.Int64 id, global::System.Int32 amount, global::System.DateTime date, global::System.Int32 methodOfPayment, global::System.Guid orderID, global::System.Guid customerID) { Payment payment = new Payment(); payment.ID = id; payment.Amount = amount; payment.Date = date; payment.MethodOfPayment = methodOfPayment; payment.OrderID = orderID; payment.CustomerID = customerID; return payment; }