Пример #1
0
            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);
            }
Пример #2
0
            public MappingContextInfo(
                SwapArgs swapArgs,
                Expression contextAccess,
                Expression sourceAccess,
                Expression targetAccess)
            {
                _swapArgs = swapArgs;

                CreatedObject     = GetCreatedObject(swapArgs);
                SourceAccess      = sourceAccess;
                TargetAccess      = targetAccess;
                MappingDataAccess = swapArgs.GetTypedContextAccess(contextAccess);
            }