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

Class AssociationRepositoryExtensions

Extension methods for IAssociationRepository.

Inheritance
System.Object
AssociationRepositoryExtensions
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: 12.17.2
Syntax
public static class AssociationRepositoryExtensions

Methods

RemoveAssociation(IAssociationRepository, Association)

Removes the association. This is equivalent to calling RemoveAssociations(IEnumerable<Association>) with one item.

Declaration
public static void RemoveAssociation(this IAssociationRepository associationRepository, Association association)
Parameters
Type Name Description
IAssociationRepository associationRepository

The association repository.

Association association

The association to remove.

UpdateAssociation(IAssociationRepository, Association)

Adds or updates the associations for the catalog content specified by the associations Source. This is equivalent to calling UpdateAssociations(IEnumerable<Association>) with one item.

Declaration
public static void UpdateAssociation(this IAssociationRepository associationRepository, Association association)
Parameters
Type Name Description
IAssociationRepository associationRepository

The association repository.

Association association

The association.