Table of Contents

Class DynamicRelationGroupService

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

Service providing methods for querying and saving the DynamicRelationGroup data.

public sealed class DynamicRelationGroupService : ICacheStorage<string, DynamicRelationGroup>, ICacheStorage<string>, ICacheStorage
Inheritance
DynamicRelationGroupService
Implements
Inherited Members

Methods

ClearCache()

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

public void ClearCache()

ClearCache(IEnumerable<string>)

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

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

Parameters

key string

Key to reset

Delete(IEnumerable<string>)

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

Parameters

ids IEnumerable<string>

Returns

Result<int>

GetAll()

public IEnumerable<DynamicRelationGroup> GetAll()

Returns

IEnumerable<DynamicRelationGroup>

GetById(string)

Gets a DynamicRelationGroup matching the specified id.

public DynamicRelationGroup? GetById(string id)

Parameters

id string

The ID.

Returns

DynamicRelationGroup

GetByIds(IEnumerable<string>)

Gets DynamicRelationGroups matching the specified ids.

public IEnumerable<DynamicRelationGroup> GetByIds(IEnumerable<string> ids)

Parameters

ids IEnumerable<string>

The IDs.

Returns

IEnumerable<DynamicRelationGroup>

HasAny()

public bool HasAny()

Returns

bool

Save(DynamicRelationGroup)

Save the specified DynamicRelationGroup.

public bool Save(DynamicRelationGroup group)

Parameters

group DynamicRelationGroup

The DynamicRelationGroup to save.

Returns

bool

Exceptions

ArgumentNullException

Thrown when the group is null.

To top