Table of Contents

Class SourceField

Namespace
Dynamicweb.Ecommerce.ProductCatalog.SchemaOrg
Assembly
Dynamicweb.Ecommerce.dll

A product field that can be used as the source of a Schema.org property mapping.

public sealed class SourceField
Inheritance
SourceField
Inherited Members

Remarks

This is the Schema.org view of a product field: the identifier a mapping stores, where its value is read from, and what kind of value it holds. It carries nothing else on purpose, so the rest of the feature does not depend on how product fields happen to be modelled.

Properties

CategoryFieldId

The ID of the field within its product category. Only set when Origin is Category.

public string? CategoryFieldId { get; init; }

Property Value

string

CategoryId

The ID of the product category the field belongs to. Only set when Origin is Category.

public string? CategoryId { get; init; }

Property Value

string

Id

The unique system name of the field, as stored on a mapping.

public required string Id { get; init; }

Property Value

string

Kind

The kind of value the field holds.

public required SourceFieldKind Kind { get; init; }

Property Value

SourceFieldKind

Origin

Where the value is read from on a product view model.

public required SourceFieldOrigin Origin { get; init; }

Property Value

SourceFieldOrigin

See Also

To top