コード例 #1
0
ファイル: ImportData.cs プロジェクト: xyyhqq/eXpand
        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
ファイル: ImportData.cs プロジェクト: dimajanzen/eXpand
 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);
         }
     }
 }