示例#1
0
        public void Map(XPDictionary outputDictionary, XPDictionary inputDictionary)
        {
            var classMapper = new ClassMapper();

            classMapper.Map(outputDictionary, inputDictionary);
            _inputClassInfos = classMapper.InputClassInfos;
            foreach (var classInfo in _inputClassInfos)
            {
                var dbTable = GetTable(classInfo);
                if (dbTable != null)
                {
                    var memberMapper = new MemberMapper(dbTable);
                    memberMapper.Map(classInfo.OutputClassInfo, classInfo);
                }
            }
        }
示例#2
0
 public void Map(XPDictionary outputDictionary, XPDictionary inputDictionary) {
     var classMapper = new ClassMapper();
     classMapper.Map(outputDictionary, inputDictionary);
     _inputClassInfos = classMapper.InputClassInfos;
     foreach (var classInfo in _inputClassInfos) {
         var dbTable = GetTable(classInfo);
         if (dbTable != null) {
             var memberMapper = new MemberMapper(dbTable);
             memberMapper.Map(classInfo.OutputClassInfo, classInfo);
         }
     }
 }