November Happy Hour will be moved to Thursday December 5th.

Class GroupDefinitionRepository<T>

A repository to store GroupDefinitionRepository<T>.

Inheritance
System.Object
GroupDefinitionRepository<T>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Commerce.Catalog.Linking
Assembly: EPiServer.Business.Commerce.dll
Version: 11.8.3
Syntax
public class GroupDefinitionRepository<T>
    where T : GroupDefinition
Type Parameters
Name Description
T

Constructors

GroupDefinitionRepository(DynamicDataStoreFactory)

Initializes a new instance of the GroupDefinitionRepository<T> class.

Declaration
public GroupDefinitionRepository(DynamicDataStoreFactory storeFactory)
Parameters
Type Name Description
EPiServer.Data.Dynamic.DynamicDataStoreFactory storeFactory

The store factory.

Properties

Store

Gets the backing DDS store.

Declaration
protected virtual DynamicDataStore Store { get; }
Property Value
Type Description
EPiServer.Data.Dynamic.DynamicDataStore

Methods

Add(T)

Adds the specified relation group definition to the repository if it doesnt already exists.

Declaration
public virtual T Add(T typeToAdd)
Parameters
Type Name Description
T typeToAdd

The relation group definition to add.

Returns
Type Description
T
Exceptions
Type Condition
System.ArgumentException

The RelationGroupDefinition to be added must have a Name;typeToAdd

Delete(String)

Deletes the specified bundle entry group definition if it exists in the repository.

Declaration
public virtual void Delete(string name)
Parameters
Type Name Description
System.String name

The name of the bundle entry group definition to delete.

List()

Lists all available bundle entry group definitions.

Declaration
public virtual IEnumerable<T> List()
Returns
Type Description
System.Collections.Generic.IEnumerable<T>