Table of Contents

Class DynamicProductRelationExtensions

Namespace
Dynamicweb.Ecommerce.Products.DynamicRelations
Assembly
Dynamicweb.Ecommerce.dll
public static class DynamicProductRelationExtensions
Inheritance
DynamicProductRelationExtensions
Inherited Members

Methods

GetDynamicProductRelationKind(DynamicProductRelation)

Determines the kind of dynamic product relation based on the specified DynamicProductRelation.

public static DynamicProductRelationKind GetDynamicProductRelationKind(this DynamicProductRelation source)

Parameters

source DynamicProductRelation

The dynamic product relation to evaluate. Cannot be null.

Returns

DynamicProductRelationKind

A DynamicProductRelationKind value indicating the type of product relation: Master if both SourceProductVariantId and SourceProductVariantOptionId are null or empty, Variant if SourceProductVariantId is not null or empty, or VariantOption if SourceProductVariantOptionId is not null or empty.

Exceptions

ArgumentNullException

Thrown if source is null.

DynamicRelationException

Thrown if the kind of dynamic product relation cannot be determined from the provided source.

To top