Interface IMapperBuilder
Builds a mapper that maps an object of TFrom type to an object of TTo type.
public interface IMapperBuilder
- Extension Methods
Properties
DeepCopy
If true, performs deep copy. if default (null), the GetMapperLambdaExpression() method does not do deep copy, however the GetMapperLambdaExpressionEx() method does.
bool? DeepCopy { get; set; }
Property Value
- bool?
FromMappingDictionary
Defines member name mapping for source types.
Dictionary<Type, Dictionary<string, string>>? FromMappingDictionary { get; set; }
Property Value
FromType
Type to map from.
[NotNull]
Type FromType { get; }
Property Value
MappingSchema
Mapping schema.
[NotNull]
MappingSchema MappingSchema { get; set; }
Property Value
MemberMappers
Member mappers.
List<MemberMapperInfo>? MemberMappers { get; set; }
Property Value
ProcessCrossReferences
If true, processes object cross references. if default (null), the GetMapperLambdaExpression() method does not process cross references, however the GetMapperLambdaExpressionEx() method does.
bool? ProcessCrossReferences { get; set; }
Property Value
- bool?
ToMappingDictionary
Defines member name mapping for destination types.
Dictionary<Type, Dictionary<string, string>>? ToMappingDictionary { get; set; }
Property Value
ToMemberFilter
Filters target members to map.
Func<MemberAccessor, bool> ToMemberFilter { get; set; }
Property Value
ToType
Type to map to.
[NotNull]
Type ToType { get; }
Property Value
Methods
GetMapperLambdaExpression()
Returns a mapper expression to map an object of TFrom type to an object of TTo type. Returned expression is compatible to IQueryable.
LambdaExpression GetMapperLambdaExpression()
Returns
- LambdaExpression
Mapping expression.
GetMapperLambdaExpressionEx()
Returns a mapper expression to map an object of TFrom type to an object of TTo type.
LambdaExpression GetMapperLambdaExpressionEx()
Returns
- LambdaExpression
Mapping expression.