/// <summary> /// Create a new Payment object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="guid">Initial value of the Guid property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> /// <param name="createdAt">Initial value of the CreatedAt property.</param> /// <param name="payDay">Initial value of the PayDay property.</param> /// <param name="amount">Initial value of the Amount property.</param> /// <param name="isPriceRegistration">Initial value of the IsPriceRegistration property.</param> /// <param name="timestamp">Initial value of the Timestamp property.</param> /// <param name="personID">Initial value of the PersonID property.</param> /// <param name="occasionID">Initial value of the OccasionID property.</param> public static Payment CreatePayment(global::System.Int32 id, global::System.Guid guid, global::System.String createdBy, global::System.DateTime createdAt, global::System.DateTime payDay, global::System.Decimal amount, global::System.Boolean isPriceRegistration, global::System.Byte[] timestamp, global::System.Int32 personID, global::System.Int32 occasionID) { Payment payment = new Payment(); payment.ID = id; payment.Guid = guid; payment.CreatedBy = createdBy; payment.CreatedAt = createdAt; payment.PayDay = payDay; payment.Amount = amount; payment.IsPriceRegistration = isPriceRegistration; payment.Timestamp = timestamp; payment.PersonID = personID; payment.OccasionID = occasionID; return payment; }
/// <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); }