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
dynamicProductRelationIdstringdynamicRelationGroupIdstringdynamicRelationCalculationConfigurationIdstringsourceProductIdstringsourceProductVariantIdstringsourceProductUnitIdstringsourceProductVariantOptionIdstringtargetProductIdstringtargetProductVariantIdstringfieldIdstringvaluestring
Properties
Created
The date and time when the calculation was created.
public DateTime Created { get; }
Property Value
DynamicProductRelationId
The ID of the DynamicProductRelation to which this calculation belongs.
public string DynamicProductRelationId { get; }
Property Value
DynamicRelationCalculationConfigurationId
The ID of the DynamicRelationCalculationConfiguration used to produce this calculation.
public string DynamicRelationCalculationConfigurationId { get; }
Property Value
DynamicRelationGroupId
The ID of the DynamicRelationGroup used to produce this calculation.
public string DynamicRelationGroupId { get; }
Property Value
FieldId
The ID of the field that was calculated.
public string FieldId { get; }
Property Value
Id
The unique ID of the calculation.
public long Id { get; }
Property Value
SourceProductId
The ID of the source product from which the calculation is made.
public string SourceProductId { get; }
Property Value
SourceProductUnitId
The ID of the source product unit from which the calculation is made, optional.
public string? SourceProductUnitId { get; }
Property Value
SourceProductVariantId
The ID of the source product variant from which the calculation is made, optional.
public string? SourceProductVariantId { get; }
Property Value
SourceProductVariantOptionId
The ID of the source product variant option from which the calculation is made, optional.
public string? SourceProductVariantOptionId { get; }
Property Value
TargetProductId
The ID of the target product to which the calculation is made, optional.
public string? TargetProductId { get; }
Property Value
TargetProductVariantId
The ID of the target product variant to which the calculation is made, optional.
public string? TargetProductVariantId { get; }
Property Value
Value
The result of the calculation.
public string? Value { get; }
Property Value
Methods
Equals(DynamicRelationCalculation?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(DynamicRelationCalculation? other)
Parameters
otherDynamicRelationCalculationAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.