Пример #1
0
 /// <summary>
 /// Create a new TaxRate object.
 /// </summary>
 /// <param name="taxRateID">Initial value of the TaxRateID property.</param>
 /// <param name="createDate">Initial value of the CreateDate property.</param>
 /// <param name="portalID">Initial value of the PortalID property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="rate">Initial value of the Rate property.</param>
 public static TaxRate CreateTaxRate(global::System.Int32 taxRateID, global::System.DateTime createDate, global::System.Int32 portalID, global::System.String name, global::System.Decimal rate)
 {
     TaxRate taxRate = new TaxRate();
     taxRate.TaxRateID = taxRateID;
     taxRate.CreateDate = createDate;
     taxRate.PortalID = portalID;
     taxRate.Name = name;
     taxRate.Rate = rate;
     return taxRate;
 }
Пример #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the TaxRates EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTaxRates(TaxRate taxRate)
 {
     base.AddObject("TaxRates", taxRate);
 }