Class FieldValueConversionService
- Namespace
- Dynamicweb.Ecommerce.Products.FieldValueConversions
- Assembly
- Dynamicweb.Ecommerce.dll
The service provides methods for fetching, adding, updating and removing field value conversion data.
public class FieldValueConversionService : ICacheStorage<int, FieldValueConversion>, ICacheStorage<int>, ICacheStorage
- Inheritance
-
FieldValueConversionService
- Implements
- Inherited Members
Properties
Info
Information about the object cache
public CacheInformation Info { get; }
Property Value
Methods
ClearCache()
Resets all keys to the default value for objects stored in the object cache
public void ClearCache()
ClearCache(IEnumerable<int>)
Resets the specified keys to the default value for objects stored in the object cache
public void ClearCache(IEnumerable<int> keys)
Parameters
keysIEnumerable<int>Keys to reset
ClearCache(int)
Resets the specified key to the default value for objects stored in the object cache
public void ClearCache(int key)
Parameters
keyintKey to reset
Delete(int)
Delete the field value conversion.
public virtual void Delete(int fieldValueConversionId)
Parameters
fieldValueConversionIdintThe field value conversion
DeleteByParent(int)
Delete field value conversions by parent group.
public virtual void DeleteByParent(int parentGroupId)
Parameters
parentGroupIdintThe id of field value conversion parent group
GetById(int)
Gets the field value conversion by id.
public virtual FieldValueConversion? GetById(int fieldValueConversionId)
Parameters
fieldValueConversionIdintThe field value conversion id
Returns
GetByParent(int)
Gets field value conversion units by parent group.
public virtual IEnumerable<FieldValueConversion> GetByParent(int parentGroupId)
Parameters
parentGroupIdintThe id of field value conversion parent group
Returns
GetBySystemName(int, string)
Gets the field value conversion by system name.
public virtual FieldValueConversion? GetBySystemName(int parentGroupId, string systemName)
Parameters
parentGroupIdintThe id of field value conversion parent group
systemNamestringThe field value conversion system name
Returns
GetUsages(IEnumerable<int>)
Gets FieldValueConversion using references collection.
public virtual IEnumerable<FieldValueConversionUsage> GetUsages(IEnumerable<int> fieldValueConversionIds)
Parameters
fieldValueConversionIdsIEnumerable<int>The list of the FieldValueConversion IDs.
Returns
Save(FieldValueConversion)
Saves the field value conversion.
public virtual void Save(FieldValueConversion fieldValueConversion)
Parameters
fieldValueConversionFieldValueConversionThe field value conversion
SetCacheType<TObjectCache>()
Changes the storage container
public void SetCacheType<TObjectCache>() where TObjectCache : ServiceCache<int, FieldValueConversion>
Type Parameters
TObjectCache
UpdateSortOrder(IEnumerable<int>)
Update field value conversion units sort order.
public virtual void UpdateSortOrder(IEnumerable<int> ids)
Parameters
idsIEnumerable<int>The ordered collection of field value conversion id