/// <summary> /// Создание нового объекта PaymentType. /// </summary> /// <param name="id">Исходное значение свойства Id.</param> /// <param name="name">Исходное значение свойства Name.</param> /// <param name="bankFee">Исходное значение свойства BankFee.</param> /// <param name="feePercent">Исходное значение свойства FeePercent.</param> public static PaymentType CreatePaymentType(global::System.Int32 id, global::System.String name, global::System.Double bankFee, global::System.Double feePercent) { PaymentType paymentType = new PaymentType(); paymentType.Id = id; paymentType.Name = name; paymentType.BankFee = bankFee; paymentType.FeePercent = feePercent; return paymentType; }
/// <summary> /// Устаревший метод для добавления новых объектов в набор EntitySet payment_type. Взамен можно использовать метод .Add связанного свойства ObjectSet<T>. /// </summary> public void AddTopayment_type(PaymentType paymentType) { base.AddObject("payment_type", paymentType); }
partial void DeletePaymentType(PaymentType instance);
partial void UpdatePaymentType(PaymentType instance);
partial void InsertPaymentType(PaymentType instance);
/// <summary> /// Create a new PaymentType object. /// </summary> /// <param name="id">Initial value of the ID property.</param> public static PaymentType CreatePaymentType(global::System.Int32 id) { PaymentType paymentType = new PaymentType(); paymentType.ID = id; return paymentType; }
/// <summary> /// Deprecated Method for adding a new object to the PaymentTypes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPaymentTypes(PaymentType paymentType) { base.AddObject("PaymentTypes", paymentType); }