Table of Contents

Class ProductVatGroup

Namespace
Dynamicweb.Ecommerce.Products
Assembly
Dynamicweb.Ecommerce.dll
Represents VAT groups on product for each country
[Serializable]
public class ProductVatGroup : DbObject
Inheritance
ProductVatGroup
Inherited Members

Constructors

ProductVatGroup()

Initializes a new instance of the ProductVatGroup class.
public ProductVatGroup()

Properties

CountryId

Gets or sets the country ID.
public string CountryId { get; set; }

Property Value

string

ProductId

Gets or sets the product ID.
public string ProductId { get; set; }

Property Value

string

ProductVariantId

Gets or sets the product variant ID.
public string ProductVariantId { get; set; }

Property Value

string

VatGroupId

Gets or sets the product VAT group ID.
public string VatGroupId { get; set; }

Property Value

string

Methods

ClearCache(string, string)

Clears the cache for specified product.
[Obsolete("Use Services.ProductVatGroups.ClearCache instead.")]
public static void ClearCache(string productId, string variantId)

Parameters

productId string
variantId string

Delete()

[Obsolete("Use Services.ProductVatGroups.Delete instead.")]
public void Delete()

Delete(int)

Deletes the product VAT group with specified ID.
[Obsolete("Use Services.ProductVatGroups.Delete instead.")]
public override void Delete(int id)

Parameters

id int
Product VAT group to delete.

Delete(int, bool)

Deletes the product VAT group with specified ID.
[Obsolete("Use Services.ProductVatGroups.Delete instead.")]
public void Delete(int id, bool clear)

Parameters

id int
Product VAT group to delete.
clear bool

Fill(IDataReader)

Fills the object with data from the specified data reader.
[Obsolete("Do not use.")]
public override void Fill(IDataReader dr)

Parameters

dr IDataReader
The data reader.

FillRow(DataRow)

Fills the row with the values of the properties.
[Obsolete("Do not use.")]
protected override void FillRow(DataRow row)

Parameters

row DataRow
The row.

GetVatGroupsByProduct(string, string)

Gets the VAT groups by product.
[Obsolete("Use Services.ProductVatGroups.GetByProductId instead.")]
public static IEnumerable<ProductVatGroup> GetVatGroupsByProduct(string productId, string variantId)

Parameters

productId string
Product id
variantId string
Variant id

Returns

IEnumerable<ProductVatGroup>

Load(int)

Loads data from the current ID row.
[Obsolete("Do not use.")]
public override void Load(int id)

Parameters

id int
ID of the current row.

Save()

Saves current data to the data base.
[Obsolete("Use Services.ProductVatGroups.Save instead.")]
public override void Save()

Save(bool)

Saves current data to the data base.
[Obsolete("Use Services.ProductVatGroups.Save instead.")]
public void Save(bool clear)

Parameters

clear bool
To top