コード例 #1
0
        public static List <string> CheckTablesStruct()
        {
            TableInfoRepo OriTableRepo = new TableInfoRepo(ConnetionInfoFactory.GetMsOriginDbInfo());
            TableInfoRepo CpyTableRepo = new TableInfoRepo(ConnetionInfoFactory.GetMsCopyDbInfo());
            List <string> list         = new List <string>();

            var listOri = OriTableRepo.GetInformation_Class();
            var listCpy = CpyTableRepo.GetInformation_Class();

            foreach (TableInfo oInfo in listOri)
            {
                foreach (TableInfo cInfo in listCpy)
                {
                    if (oInfo.TABLE_NAME == cInfo.TABLE_NAME)
                    {
                        bool x = CheckTableStruct(oInfo.TABLE_NAME, OriTableRepo, CpyTableRepo);

                        if (x == false)
                        {
                            list.Add(oInfo.TABLE_NAME);
                        }
                    }
                }
            }

            return(list);
        }
コード例 #2
0
        public DataBaseCopyService()
        {
            var model = ConnetionInfoFactory.GetMsCopyMasterDB();

            db             = new MsManger(model);
            targetDataBase = model.initialCatalog;
        }
コード例 #3
0
        public static List <string> GetNotMatchTableData()
        {
            TableInfoRepo OriTableRepo = new TableInfoRepo(ConnetionInfoFactory.GetMsOriginDbInfo());
            TableInfoRepo CpyTableRepo = new TableInfoRepo(ConnetionInfoFactory.GetMsCopyDbInfo());

            var listOri = OriTableRepo.GetInformation_Class();
            var listCpy = CpyTableRepo.GetInformation_Class();

            return(GetErrorList(listOri, listCpy));
        }
コード例 #4
0
        public TableAnalyzeService()
        {
            var oriInfo = ConnetionInfoFactory.GetMsOriginDbInfo();

            oriRepo = new TableInfoRepo(oriInfo);

            var cpyInfo = ConnetionInfoFactory.GetMsCopyDbInfo();

            cpyRepo = new TableInfoRepo(oriInfo);

            resultTableList = new List <DataSet>();
            resultNameList  = new List <string>();
        }