Table of Contents

Class DynamicRelationCalculation

Namespace
Dynamicweb.Ecommerce.Products.DynamicRelations
Assembly
Dynamicweb.Ecommerce.dll

Represents a calculation as a result of a DynamicRelationCalculationConfiguration.

public sealed class DynamicRelationCalculation : IEquatable<DynamicRelationCalculation>
Inheritance
DynamicRelationCalculation
Implements
Inherited Members

Constructors

DynamicRelationCalculation(string, string, string, string, string?, string?, string?, string?, string?, string, string?)

public DynamicRelationCalculation(string dynamicProductRelationId, string dynamicRelationGroupId, string dynamicRelationCalculationConfigurationId, string sourceProductId, string? sourceProductVariantId, string? sourceProductUnitId, string? sourceProductVariantOptionId, string? targetProductId, string? targetProductVariantId, string fieldId, string? value)

Parameters

dynamicProductRelationId string
dynamicRelationGroupId string
dynamicRelationCalculationConfigurationId string
sourceProductId string
sourceProductVariantId string
sourceProductUnitId string
sourceProductVariantOptionId string
targetProductId string
targetProductVariantId string
fieldId string
value string

Properties

Created

The date and time when the calculation was created.

public DateTime Created { get; }

Property Value

DateTime

DynamicProductRelationId

The ID of the DynamicProductRelation to which this calculation belongs.

public string DynamicProductRelationId { get; }

Property Value

string

DynamicRelationCalculationConfigurationId

The ID of the DynamicRelationCalculationConfiguration used to produce this calculation.

public string DynamicRelationCalculationConfigurationId { get; }

Property Value

string

DynamicRelationGroupId

The ID of the DynamicRelationGroup used to produce this calculation.

public string DynamicRelationGroupId { get; }

Property Value

string

FieldId

The ID of the field that was calculated.

public string FieldId { get; }

Property Value

string

Id

The unique ID of the calculation.

public long Id { get; }

Property Value

long

SourceProductId

The ID of the source product from which the calculation is made.

public string SourceProductId { get; }

Property Value

string

SourceProductUnitId

The ID of the source product unit from which the calculation is made, optional.

public string? SourceProductUnitId { get; }

Property Value

string

SourceProductVariantId

The ID of the source product variant from which the calculation is made, optional.

public string? SourceProductVariantId { get; }

Property Value

string

SourceProductVariantOptionId

The ID of the source product variant option from which the calculation is made, optional.

public string? SourceProductVariantOptionId { get; }

Property Value

string

TargetProductId

The ID of the target product to which the calculation is made, optional.

public string? TargetProductId { get; }

Property Value

string

TargetProductVariantId

The ID of the target product variant to which the calculation is made, optional.

public string? TargetProductVariantId { get; }

Property Value

string

Value

The result of the calculation.

public string? Value { get; }

Property Value

string

Methods

Equals(DynamicRelationCalculation?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(DynamicRelationCalculation? other)

Parameters

other DynamicRelationCalculation

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

To top