Class FieldValueConversionService
- Namespace
- Dynamicweb.Ecommerce.Products.Field
Value Conversions
- Assembly
- Dynamicweb.Ecommerce.dll
The service provides methods for fetching, adding, updating and removing field value conversion data.
public sealed class FieldValueConversionService : ICacheStorage<int, FieldValueConversion>, ICacheStorage<int>, ICacheStorage
- Inheritance
-
Field
Value Conversion Service
- Implements
- Inherited Members
Constructors
FieldValueConversionService()
Methods
ClearCache()
Resets all keys to the default value for objects stored in the object cache
ClearCache(IEnumerable<int>)
Resets the specified keys to the default value for objects stored in the object cache
Parameters
keys
IEnumerable<int>Keys to reset
ClearCache(int)
Resets the specified key to the default value for objects stored in the object cache
Parameters
key
intKey to reset
Delete(int)
Delete the field value conversion.
Parameters
fieldValueConversionId
intThe field value conversion
DeleteByParent(int)
Delete field value conversions by parent group.
Parameters
parentGroupId
intThe id of field value conversion parent group
GetBaseUnit(int)
Gets the base field value conversion unit for a group.
Parameters
parentGroupId
intThe id of field value conversion parent group
Returns
GetById(int)
Gets the field value conversion by id.
Parameters
fieldValueConversionId
intThe field value conversion id
Returns
GetByParent(int)
Gets field value conversion units by parent group.
Parameters
parentGroupId
intThe id of field value conversion parent group
Returns
GetBySystemName(int, string)
Gets the field value conversion by system name.
Parameters
parentGroupId
intThe id of field value conversion parent group
systemName
stringThe field value conversion system name
Returns
GetUsages(IEnumerable<int>)
Gets Field
Parameters
fieldValueConversionIds
IEnumerable<int>The list of the Field
Value IDs.Conversion
Returns
Save(FieldValueConversion)
Saves the field value conversion.
Parameters
fieldValueConversion
FieldValue Conversion The field value conversion
UpdateSortOrder(IEnumerable<int>)
Update field value conversion units sort order.
Parameters
ids
IEnumerable<int>The ordered collection of field value conversion id