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
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
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