Table of Contents

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

CacheInformation

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

keys IEnumerable<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

key int

Key to reset

Delete(int)

Delete the field value conversion group.

public virtual void Delete(int fieldValueConversionGroupId)

Parameters

fieldValueConversionGroupId int

The field value conversion group id

GetAll()

Gets all field value conversion groups.

public virtual IEnumerable<FieldValueConversionGroup> GetAll()

Returns

IEnumerable<FieldValueConversionGroup>

GetById(int)

Gets the field value conversion group by id.

public virtual FieldValueConversionGroup? GetById(int fieldValueConversionGroupId)

Parameters

fieldValueConversionGroupId int

The field value conversion group id

Returns

FieldValueConversionGroup

GetBySystemName(string)

Gets the field value conversion group by system name.

public virtual FieldValueConversionGroup? GetBySystemName(string systemName)

Parameters

systemName string

The field value conversion group system name

Returns

FieldValueConversionGroup

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

fieldValueConversionGroup FieldValueConversionGroup

The value conversion group

SetCacheType<TObjectCache>()

Changes the storage container

public void SetCacheType<TObjectCache>() where TObjectCache : ServiceCache<int, FieldValueConversionGroup>

Type Parameters

TObjectCache
To top