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: 10.8.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 LinksRepository, which will be send to the method which contains the associations getter.
GetAssociations(IAssociating, ILinksRepository)
Gets the associations
Declaration
public static IEnumerable<Association> GetAssociations(this IAssociating associating, ILinksRepository linkRepository)
Parameters
Type | Name | Description |
---|---|---|
IAssociating | associating | The associating implementation |
ILinksRepository | linkRepository | the links repository. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Association> |