Table of Contents

Class MappingContext

Namespace
Dynamicweb.Extensibility.Mapping
Assembly
Dynamicweb.Core.dll
public sealed class MappingContext
Inheritance
MappingContext
Inherited Members

Properties

Empty

public static MappingContext Empty { get; }

Property Value

MappingContext

IncludedProperties

public HashSet<string> IncludedProperties { get; init; }

Property Value

HashSet<string>

MapAllProperties

public bool MapAllProperties { get; set; }

Property Value

bool

Properties

Arbitrary properties for passing additional context through the mapping pipeline.

public Dictionary<string, object> Properties { get; }

Property Value

Dictionary<string, object>

Methods

FromProperties<T>(IEnumerable<Expression<Func<T, object?>>>)

public static MappingContext FromProperties<T>(IEnumerable<Expression<Func<T, object?>>> properties)

Parameters

properties IEnumerable<Expression<Func<T, object>>>

Returns

MappingContext

Type Parameters

T

GetSubPropertyIds(string)

Extracts sub-property IDs for a parent property. For example, properties like "CategoryFields|SomeFieldId" will return "SomeFieldId" when parentPropertyName is "CategoryFields".

public HashSet<string> GetSubPropertyIds(string parentPropertyName)

Parameters

parentPropertyName string

Returns

HashSet<string>

ShouldMapProperty(string)

public bool ShouldMapProperty(string propertyName)

Parameters

propertyName string

Returns

bool

WithProperties<T>(IEnumerable<Expression<Func<T, object?>>>)

public MappingContext WithProperties<T>(IEnumerable<Expression<Func<T, object?>>> properties)

Parameters

properties IEnumerable<Expression<Func<T, object>>>

Returns

MappingContext

Type Parameters

T
To top