Table of Contents

Class DynamicRelationGroupCategoryService

Namespace
Dynamicweb.Ecommerce.Products.DynamicRelations
Assembly
Dynamicweb.Ecommerce.dll

Service providing methods for querying and saving the DynamicRelationGroupCategory data.

public abstract class DynamicRelationGroupCategoryService : ICacheStorage<string, DynamicRelationGroupCategory>, ICacheStorage<string>, ICacheStorage
Inheritance
DynamicRelationGroupCategoryService
Implements
Inherited Members

Properties

Info

Information about the object cache

public abstract CacheInformation Info { get; }

Property Value

CacheInformation

Methods

ClearCache()

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

public abstract void ClearCache()

ClearCache(IEnumerable<string>)

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

public abstract 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 abstract void ClearCache(string key)

Parameters

key string

Key to reset

Delete(IEnumerable<string>)

Deletes the DynamicRelationGroupCategorys matching the specified ids.

public abstract Result<int> Delete(IEnumerable<string> ids)

Parameters

ids IEnumerable<string>

The IDs.

Returns

Result<int>

GetAll()

public abstract IEnumerable<DynamicRelationGroupCategory> GetAll()

Returns

IEnumerable<DynamicRelationGroupCategory>

GetById(string)

Gets a DynamicRelationGroupCategory matching the specified id.

public abstract DynamicRelationGroupCategory? GetById(string id)

Parameters

id string

The ID.

Returns

DynamicRelationGroupCategory

GetByIds(IEnumerable<string>)

Gets DynamicRelationGroupCategorys matching the specified ids.

public abstract IEnumerable<DynamicRelationGroupCategory> GetByIds(IEnumerable<string> ids)

Parameters

ids IEnumerable<string>

The IDs.

Returns

IEnumerable<DynamicRelationGroupCategory>

GetCategoryUsages()

Gets the usage counts of the DynamicRelationGroupCategorys.

public abstract Dictionary<string, int> GetCategoryUsages()

Returns

Dictionary<string, int>

Save(DynamicRelationGroupCategory)

Save the specified DynamicRelationGroupCategory.

public abstract void Save(DynamicRelationGroupCategory category)

Parameters

category DynamicRelationGroupCategory

The DynamicRelationGroupCategory to save.

Exceptions

ArgumentNullException

Thrown when the category is null.

SetCacheType<TObjectCache>()

Changes the storage container

public abstract void SetCacheType<TObjectCache>() where TObjectCache : ServiceCache<string, DynamicRelationGroupCategory>

Type Parameters

TObjectCache
To top