/// <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="ticketId">Initial value of the TicketId property.</param> /// <param name="customerId">Initial value of the CustomerId property.</param> /// <param name="type">Initial value of the Type property.</param> /// <param name="amount">Initial value of the Amount property.</param> /// <param name="date">Initial value of the Date property.</param> public static Payment CreatePayment(global::System.Int32 id, global::System.Int32 ticketId, global::System.Guid customerId, global::System.Int32 type, global::System.Decimal amount, global::System.DateTime date) { Payment payment = new Payment(); payment.Id = id; payment.TicketId = ticketId; payment.CustomerId = customerId; payment.Type = type; payment.Amount = amount; payment.Date = date; return payment; }