/// <summary> /// Create a new TaxRate object. /// </summary> /// <param name="guid">Initial value of the Guid property.</param> /// <param name="siteGuid">Initial value of the SiteGuid property.</param> /// <param name="geoZoneGuid">Initial value of the GeoZoneGuid property.</param> /// <param name="taxClassGuid">Initial value of the TaxClassGuid property.</param> /// <param name="priority">Initial value of the Priority property.</param> /// <param name="rate">Initial value of the Rate property.</param> /// <param name="description">Initial value of the Description property.</param> /// <param name="created">Initial value of the Created property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> public static TaxRate CreateTaxRate(global::System.Guid guid, global::System.Guid siteGuid, global::System.Guid geoZoneGuid, global::System.Guid taxClassGuid, global::System.Int32 priority, global::System.Decimal rate, global::System.String description, global::System.DateTime created, global::System.Guid createdBy) { TaxRate taxRate = new TaxRate(); taxRate.Guid = guid; taxRate.SiteGuid = siteGuid; taxRate.GeoZoneGuid = geoZoneGuid; taxRate.TaxClassGuid = taxClassGuid; taxRate.Priority = priority; taxRate.Rate = rate; taxRate.Description = description; taxRate.Created = created; taxRate.CreatedBy = createdBy; return taxRate; }
/// <summary> /// Deprecated Method for adding a new object to the TaxRates EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToTaxRates(TaxRate taxRate) { base.AddObject("TaxRates", taxRate); }