/// <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="paymentId">Initial value of the PaymentId property.</param> /// <param name="paymentCard">Initial value of the PaymentCard property.</param> public static Payment CreatePayment(global::System.Int32 paymentId, global::System.Int32 paymentCard) { Payment payment = new Payment(); payment.PaymentId = paymentId; payment.PaymentCard = paymentCard; return payment; }