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

Class RelationRepositoryExtensions

Extension methods for IRelationRepository.

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

Methods

RemoveRelation(IRelationRepository, Relation)

Removes the relation. This is equivalent to calling RemoveRelations(IEnumerable<Relation>) with one item.

Declaration
public static void RemoveRelation(this IRelationRepository relationRepository, Relation relation)
Parameters
Type Name Description
IRelationRepository relationRepository

The relation repository.

Relation relation

The relation to remove.

UpdateRelation(IRelationRepository, Relation)

Adds or updates the relation for the catalog content specified by the relations Source. This is equivalent to calling UpdateRelations(IEnumerable<Relation>) with one item.

Declaration
public static void UpdateRelation(this IRelationRepository relationRepository, Relation relation)
Parameters
Type Name Description
IRelationRepository relationRepository

The relation repository.

Relation relation

The relation.