예제 #1
0
        public MapBuilder(ExpressionProvider expressionProvider)
        {
            _expressionProvider = expressionProvider;

            _inType     = typeof(TIn);
            _outType    = typeof(TOut);
            _inMembers  = Helper.GetMapFields(_inType).ToList();
            _outMembers = Helper.GetMapFields(_outType, true).ToList();
        }
예제 #2
0
 public MapConfiguration(ExpressionProvider expressionProvider, DynamicMapping dynamicMapping = DynamicMapping.NotAllowed, bool preserveReferences = false)
 {
     _expressionProvider = expressionProvider;
     _dynamicMapping     = dynamicMapping;
     _preserveReferences = preserveReferences;
 }