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
IncludedProperties
public HashSet<string> IncludedProperties { get; init; }
Property Value
MapAllProperties
public bool MapAllProperties { get; set; }
Property Value
Properties
Arbitrary properties for passing additional context through the mapping pipeline.
public Dictionary<string, object> Properties { get; }
Property Value
Methods
FromProperties<T>(IEnumerable<Expression<Func<T, object?>>>)
public static MappingContext FromProperties<T>(IEnumerable<Expression<Func<T, object?>>> properties)
Parameters
propertiesIEnumerable<Expression<Func<T, object>>>
Returns
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
parentPropertyNamestring
Returns
ShouldMapProperty(string)
public bool ShouldMapProperty(string propertyName)
Parameters
propertyNamestring
Returns
WithProperties<T>(IEnumerable<Expression<Func<T, object?>>>)
public MappingContext WithProperties<T>(IEnumerable<Expression<Func<T, object?>>> properties)
Parameters
propertiesIEnumerable<Expression<Func<T, object>>>
Returns
Type Parameters
T