Class FieldValueConversionGroupService
- Namespace
- Dynamicweb.Ecommerce.Products.FieldValueConversions
- Assembly
- Dynamicweb.Ecommerce.dll
The service provides methods for fetching, adding, updating and removing field value conversion group data.
public class FieldValueConversionGroupService : ICacheStorage<int, FieldValueConversionGroup>, ICacheStorage<int>, ICacheStorage
- Inheritance
-
FieldValueConversionGroupService
- 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 group.
public virtual void Delete(int fieldValueConversionGroupId)
Parameters
fieldValueConversionGroupIdintThe field value conversion group id
GetAll()
Gets all field value conversion groups.
public virtual IEnumerable<FieldValueConversionGroup> GetAll()
Returns
GetById(int)
Gets the field value conversion group by id.
public virtual FieldValueConversionGroup? GetById(int fieldValueConversionGroupId)
Parameters
fieldValueConversionGroupIdintThe field value conversion group id
Returns
GetBySystemName(string)
Gets the field value conversion group by system name.
public virtual FieldValueConversionGroup? GetBySystemName(string systemName)
Parameters
systemNamestringThe field value conversion group system name
Returns
GetPredefinedGroups()
Gets predefined conversion groups
public virtual IEnumerable<FieldValueConversionGroup> GetPredefinedGroups()
Returns
- IEnumerable<FieldValueConversionGroup>
Predefined groups collection
Save(FieldValueConversionGroup)
Saves the field value conversion group.
public virtual void Save(FieldValueConversionGroup fieldValueConversionGroup)
Parameters
fieldValueConversionGroupFieldValueConversionGroupThe value conversion group
SetCacheType<TObjectCache>()
Changes the storage container
public void SetCacheType<TObjectCache>() where TObjectCache : ServiceCache<int, FieldValueConversionGroup>
Type Parameters
TObjectCache