Class ProductRelation
A relation from a product to another product.
Implements
Inherited Members
Namespace: Activout.Blue5
Assembly: Activout.Blue5.dll
Syntax
public sealed record ProductRelation : IEquatable<ProductRelation>
Constructors
| Edit this page View SourceProductRelation(string, string?, string?, string, bool, RelationDirection)
A relation from a product to another product.
Declaration
public ProductRelation(string Id, string? Name, string? Number, string ProductId, bool Reverse, RelationDirection Direction)
Parameters
| Type | Name | Description |
|---|---|---|
| string | Id | Relation definition id. |
| string | Name | Relation name, if any. |
| string | Number | Relation business key, if any. |
| string | ProductId | Id of the related product. |
| bool | Reverse | True when this is the reverse side of a two-way relation. |
| RelationDirection | Direction | Whether the relation is one-way or two-way. |
Properties
| Edit this page View SourceDirection
Whether the relation is one-way or two-way.
Declaration
public RelationDirection Direction { get; init; }
Property Value
| Type | Description |
|---|---|
| RelationDirection |
Id
Relation definition id.
Declaration
public string Id { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Name
Relation name, if any.
Declaration
public string? Name { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Number
Relation business key, if any.
Declaration
public string? Number { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
ProductId
Id of the related product.
Declaration
public string ProductId { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Reverse
True when this is the reverse side of a two-way relation.
Declaration
public bool Reverse { get; init; }
Property Value
| Type | Description |
|---|---|
| bool |