Table of Contents

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 sealed class FieldValueConversionService : ICacheStorage<int, FieldValueConversion>, ICacheStorage<int>, ICacheStorage
Inheritance
FieldValueConversionService
Implements
Inherited Members

Constructors

FieldValueConversionService()

public FieldValueConversionService()

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.

public void Delete(int fieldValueConversionId)

Parameters

fieldValueConversionId int

The field value conversion

DeleteByParent(int)

Delete field value conversions by parent group.

public void DeleteByParent(int parentGroupId)

Parameters

parentGroupId int

The id of field value conversion parent group

GetBaseUnit(int)

Gets the base field value conversion unit for a group.

public FieldValueConversion? GetBaseUnit(int parentGroupId)

Parameters

parentGroupId int

The id of field value conversion parent group

Returns

FieldValueConversion

GetById(int)

Gets the field value conversion by id.

public FieldValueConversion? GetById(int fieldValueConversionId)

Parameters

fieldValueConversionId int

The field value conversion id

Returns

FieldValueConversion

GetByParent(int)

Gets field value conversion units by parent group.

public IEnumerable<FieldValueConversion> GetByParent(int parentGroupId)

Parameters

parentGroupId int

The id of field value conversion parent group

Returns

IEnumerable<FieldValueConversion>

GetBySystemName(int, string)

Gets the field value conversion by system name.

public FieldValueConversion? GetBySystemName(int parentGroupId, string systemName)

Parameters

parentGroupId int

The id of field value conversion parent group

systemName string

The field value conversion system name

Returns

FieldValueConversion

GetUsages(IEnumerable<int>)

Gets FieldValueConversion using references collection.

public IEnumerable<FieldValueConversionUsage> GetUsages(IEnumerable<int> fieldValueConversionIds)

Parameters

fieldValueConversionIds IEnumerable<int>

The list of the FieldValueConversion IDs.

Returns

IEnumerable<FieldValueConversionUsage>

Save(FieldValueConversion)

Saves the field value conversion.

public void Save(FieldValueConversion fieldValueConversion)

Parameters

fieldValueConversion FieldValueConversion

The field value conversion

UpdateSortOrder(IEnumerable<int>)

Update field value conversion units sort order.

public void UpdateSortOrder(IEnumerable<int> ids)

Parameters

ids IEnumerable<int>

The ordered collection of field value conversion id

To top