Table of Contents

Class OrderFieldService

Namespace
Dynamicweb.Ecommerce.Orders
Assembly
Dynamicweb.Ecommerce.dll

Provides access to the custom fields defined on orders, including the order table columns backing them.

public class OrderFieldService : ICacheStorage<string, OrderField>, ICacheStorage<string>, ICacheStorage
Inheritance
OrderFieldService
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 virtual void ClearCache()

ClearCache(IEnumerable<string>)

Resets the specified keys to the default value for objects stored in the object cache

public virtual void ClearCache(IEnumerable<string> keys)

Parameters

keys IEnumerable<string>

Keys to reset

ClearCache(string)

Resets the specified key to the default value for objects stored in the object cache

public virtual void ClearCache(string key)

Parameters

key string

Key to reset

Delete(OrderField)

Deletes an order field, removing its column from the order table.

public virtual void Delete(OrderField field)

Parameters

field OrderField

The order field to delete.

GetOrderFieldById(string)

Gets an order field by id.

public virtual OrderField? GetOrderFieldById(string id)

Parameters

id string

Order field id.

Returns

OrderField

GetOrderFields()

Gets all order fields.

public virtual OrderFieldCollection GetOrderFields()

Returns

OrderFieldCollection

A sequence of OrderField.

IsExistingFieldSystemName(string)

Check for the existence of a OrderField with the given system name

public virtual bool IsExistingFieldSystemName(string systemName)

Parameters

systemName string

Field system name

Returns

bool

true, if field exists; otherwise, false.

IsValidFieldSystemName(string, bool)

Verifies if a given field system name is valid.

public virtual bool IsValidFieldSystemName(string systemName, bool isNew)

Parameters

systemName string

System name to validate.

isNew bool

Whether the field is new.

Returns

bool

Save(OrderField)

Saves an order field, adding its column to the order table.

public virtual void Save(OrderField field)

Parameters

field OrderField

The order field to save.

SetCacheType<TObjectCache>()

Changes the storage container

public virtual void SetCacheType<TObjectCache>() where TObjectCache : ServiceCache<string, OrderField>

Type Parameters

TObjectCache
To top