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

Interface IAssociationRepository

Describes a service for handling associations of catalog content.

Namespace: EPiServer.Commerce.Catalog.Linking
Assembly: EPiServer.Business.Commerce.dll
Version: 13.30.0
Syntax
public interface IAssociationRepository

Methods

GetAssociations(ContentReference)

Gets the associations for the catalog content specified by the content link.

Declaration
IEnumerable<Association> GetAssociations(ContentReference contentLink)
Parameters
Type Name Description
EPiServer.Core.ContentReference contentLink

The content link.

Returns
Type Description
System.Collections.Generic.IEnumerable<Association>

RemoveAssociations(IEnumerable<Association>)

Removes the associations.

Declaration
void RemoveAssociations(IEnumerable<Association> associations)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<Association> associations

The associations to remove.

UpdateAssociations(IEnumerable<Association>)

Updates matching associations and adds new associations for an entry.

Declaration
void UpdateAssociations(IEnumerable<Association> associations)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<Association> associations

The associations.

Extension Methods