/// <summary> /// Deprecated Method for adding a new object to the SalesTaxRates EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSalesTaxRates(SalesTaxRate salesTaxRate) { base.AddObject("SalesTaxRates", salesTaxRate); }
/// <summary> /// Create a new SalesTaxRate object. /// </summary> /// <param name="salesTaxRateID">Initial value of the SalesTaxRateID property.</param> /// <param name="stateProvinceID">Initial value of the StateProvinceID property.</param> /// <param name="taxType">Initial value of the TaxType property.</param> /// <param name="taxRate">Initial value of the TaxRate property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="rowguid">Initial value of the rowguid property.</param> /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param> public static SalesTaxRate CreateSalesTaxRate(global::System.Int32 salesTaxRateID, global::System.Int32 stateProvinceID, global::System.Byte taxType, global::System.Decimal taxRate, global::System.String name, global::System.Guid rowguid, global::System.DateTime modifiedDate) { SalesTaxRate salesTaxRate = new SalesTaxRate(); salesTaxRate.SalesTaxRateID = salesTaxRateID; salesTaxRate.StateProvinceID = stateProvinceID; salesTaxRate.TaxType = taxType; salesTaxRate.TaxRate = taxRate; salesTaxRate.Name = name; salesTaxRate.rowguid = rowguid; salesTaxRate.ModifiedDate = modifiedDate; return salesTaxRate; }