/// <summary> /// Create a new CustomerCredit object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="createdDate">Initial value of the CreatedDate property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> /// <param name="updatedDate">Initial value of the UpdatedDate property.</param> /// <param name="updatedBy">Initial value of the UpdatedBy property.</param> /// <param name="version">Initial value of the Version property.</param> /// <param name="amount">Initial value of the Amount property.</param> /// <param name="installmentId">Initial value of the InstallmentId property.</param> /// <param name="customerIdmPartyId">Initial value of the CustomerIdmPartyId property.</param> /// <param name="customerName">Initial value of the CustomerName property.</param> /// <param name="customerAddress">Initial value of the CustomerAddress property.</param> /// <param name="isUsedOrRefund">Initial value of the IsUsedOrRefund property.</param> public static CustomerCredit CreateCustomerCredit(global::System.Int64 id, global::System.DateTime createdDate, global::System.String createdBy, global::System.DateTime updatedDate, global::System.String updatedBy, global::System.Byte[] version, global::System.Decimal amount, global::System.Int32 installmentId, global::System.Int64 customerIdmPartyId, global::System.String customerName, global::System.String customerAddress, global::System.Boolean isUsedOrRefund) { CustomerCredit customerCredit = new CustomerCredit(); customerCredit.Id = id; customerCredit.CreatedDate = createdDate; customerCredit.CreatedBy = createdBy; customerCredit.UpdatedDate = updatedDate; customerCredit.UpdatedBy = updatedBy; customerCredit.Version = version; customerCredit.Amount = amount; customerCredit.InstallmentId = installmentId; customerCredit.CustomerIdmPartyId = customerIdmPartyId; customerCredit.CustomerName = customerName; customerCredit.CustomerAddress = customerAddress; customerCredit.IsUsedOrRefund = isUsedOrRefund; return customerCredit; }
/// <summary> /// Deprecated Method for adding a new object to the CustomerCredits EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCustomerCredits(CustomerCredit customerCredit) { base.AddObject("CustomerCredits", customerCredit); }