Class AssociatingExtensions
Gets the association for a IAssociating implementation.
Inheritance
System.Object
AssociatingExtensions
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.ContentTypes
Assembly: EPiServer.Business.Commerce.dll
Version: 13.30.0Syntax
public static class AssociatingExtensions
Methods
GetAssociations(IAssociating)
Gets the associations
Declaration
public static IEnumerable<Association> GetAssociations(this IAssociating associating)
Parameters
Type | Name | Description |
---|---|---|
IAssociating | associating | The associating implementation. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Association> | Collection of asociations. |
Remarks
This method uses the EPiServer.ServiceLocation.ServiceLocator to resolve the IAssociationRepository, which will be send to the method which contains the associations getter.
GetAssociations(IAssociating, IAssociationRepository)
Gets the associations
Declaration
public static IEnumerable<Association> GetAssociations(this IAssociating associating, IAssociationRepository associationRepository)
Parameters
Type | Name | Description |
---|---|---|
IAssociating | associating | The associating implementation. |
IAssociationRepository | associationRepository | The association repository. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Association> |