public MappingContextInfo(SwapArgs swapArgs, Expression contextAccess) { _swapArgs = swapArgs; CreatedObject = GetCreatedObject(swapArgs); SourceAccess = GetValueAccess(swapArgs.GetSourceAccess(contextAccess), ContextTypes[0]); TargetAccess = GetValueAccess(swapArgs.GetTargetAccess(contextAccess), ContextTypes[1]); MappingDataAccess = swapArgs.GetTypedContextAccess(contextAccess); }
public MappingContextInfo( SwapArgs swapArgs, Expression contextAccess, Expression sourceAccess, Expression targetAccess) { _swapArgs = swapArgs; CreatedObject = GetCreatedObject(swapArgs); SourceAccess = sourceAccess; TargetAccess = targetAccess; MappingDataAccess = swapArgs.GetTypedContextAccess(contextAccess); }