C# Class AutoMapper.Execution.TypeMapPlanBuilder

Mostra file Open project: AutoMapper/AutoMapper Class Usage Examples

Public Methods

Method Description
CheckContext ( TypeMap typeMap, Expression context ) : ConditionalExpression
CreateMapperLambda ( ) : LambdaExpression
MapExpression ( TypeMapRegistry typeMapRegistry, IConfigurationProvider configurationProvider, TypePair typePair, Expression sourceParameter, Expression contextParameter, PropertyMap propertyMap = null, Expression destinationParameter = null ) : Expression
MapExpression ( TypePair typePair, Expression sourceParameter, PropertyMap propertyMap = null, Expression destinationParameter = null ) : Expression
TypeMapPlanBuilder ( IConfigurationProvider configurationProvider, TypeMapRegistry typeMapRegistry, TypeMap typeMap ) : System

Private Methods

Method Description
BuildValueResolverFunc ( PropertyMap propertyMap, Expression destValueExpr ) : Expression
ContextMap ( TypePair typePair, Expression sourceParameter, Expression contextParameter, Expression destinationParameter ) : Expression
CreateAssignmentFunc ( Expression destinationFunc, bool constructorMapping ) : Expression
CreateDestinationFunc ( bool &constructorMapping ) : Expression
CreateMapperFunc ( Expression assignmentFunc ) : Expression
CreateNewDestinationFunc ( bool &constructorMapping ) : Expression
CreatePropertyMapFunc ( PropertyMap propertyMap ) : Expression
GetMemberResolver ( Expression destValueExpr, Type destinationPropertyType, Expression ctor, Type resolverType, Expression sourceMember ) : Expression
SetMap ( PropertyMap propertyMap, Expression valueResolverExpression, Expression destinationValueExpression ) : Expression
TryPropertyMap ( PropertyMap propertyMap ) : Expression
TypeConverterMapper ( ) : LambdaExpression

Method Details

CheckContext() public static method

public static CheckContext ( TypeMap typeMap, Expression context ) : ConditionalExpression
typeMap TypeMap
context System.Linq.Expressions.Expression
return System.Linq.Expressions.ConditionalExpression

CreateMapperLambda() public method

public CreateMapperLambda ( ) : LambdaExpression
return System.Linq.Expressions.LambdaExpression

MapExpression() public static method

public static MapExpression ( TypeMapRegistry typeMapRegistry, IConfigurationProvider configurationProvider, TypePair typePair, Expression sourceParameter, Expression contextParameter, PropertyMap propertyMap = null, Expression destinationParameter = null ) : Expression
typeMapRegistry TypeMapRegistry
configurationProvider IConfigurationProvider
typePair TypePair
sourceParameter System.Linq.Expressions.Expression
contextParameter System.Linq.Expressions.Expression
propertyMap PropertyMap
destinationParameter System.Linq.Expressions.Expression
return System.Linq.Expressions.Expression

MapExpression() public method

public MapExpression ( TypePair typePair, Expression sourceParameter, PropertyMap propertyMap = null, Expression destinationParameter = null ) : Expression
typePair TypePair
sourceParameter System.Linq.Expressions.Expression
propertyMap PropertyMap
destinationParameter System.Linq.Expressions.Expression
return System.Linq.Expressions.Expression

TypeMapPlanBuilder() public method

public TypeMapPlanBuilder ( IConfigurationProvider configurationProvider, TypeMapRegistry typeMapRegistry, TypeMap typeMap ) : System
configurationProvider IConfigurationProvider
typeMapRegistry TypeMapRegistry
typeMap TypeMap
return System