Class VariantOptionService
- Namespace
- Dynamicweb.Ecommerce
- Assembly
- Dynamicweb.Ecommerce.dll
public class VariantOptionService : ICacheStorage<string, VariantOption>, ICacheStorage<string>, ICacheStorage
- Inheritance
-
Variant
Option Service
- Implements
- Inherited Members
Properties
Info
Information about the object cache
Property Value
Methods
ClearCache()
Clears cached Variant Options.
ClearCache(IEnumerable<string>)
Resets the specified keys to the default value for objects stored in the object cache
Parameters
keys
IEnumerable<string>Keys to reset
ClearCache(string)
Resets the specified key to the default value for objects stored in the object cache
Parameters
key
stringKey to reset
Delete(string)
Deletes instance with the specified parameters.
Parameters
id
stringThe variant option id.
DeleteByVariantGroup(string)
Deletes instance with the specified parameters.
Parameters
variantGroupId
string
DeleteVariantOption(string)
Deletes instance with the specified parameters.
Parameters
id
stringThe variant option ID.
GetAll()
Returns
GetByGroup(string)
Get all options across all languages, for a given Variant Group ID.
Parameters
variantGroupId
string
Returns
GetByVariantId(string)
Parameters
variantId
string
Returns
GetVariantOption(string)
Gets the variant option.
Parameters
id
stringThe variant option id
Returns
- Variant
Option The instance of the Variant
Option .
Save(VariantOption)
Parameters
variantOption
VariantOption
SetCacheType<TObjectCache>()
Changes the storage container
Type Parameters
TObjectCache