/// <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="paymentToken">Initial value of the PaymentToken property.</param> /// <param name="date">Initial value of the Date property.</param> /// <param name="amount">Initial value of the Amount property.</param> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="eventId">Initial value of the EventId property.</param> public static Payment CreatePayment(global::System.Int32 id, global::System.String paymentToken, global::System.String date, global::System.String amount, global::System.Int32 userId, global::System.Int32 eventId) { Payment payment = new Payment(); payment.Id = id; payment.PaymentToken = paymentToken; payment.Date = date; payment.Amount = amount; payment.UserId = userId; payment.EventId = eventId; return payment; }