Interface IAssociationRepository
Describes a service for handling associations of catalog content.
Namespace: EPiServer.Commerce.Catalog.Linking
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0Syntax
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. |