Exemple #1
0
        public DataBaseCopyService()
        {
            var model = ConnetionInfoFactory.GetMsCopyMasterDB();

            db             = new MsManger(model);
            targetDataBase = model.initialCatalog;
        }
        public DatabasesInfoRepo(bool isOrigin)
        {
            MsConnetionInfo connInfo;

            connInfo = GetDBInfo(isOrigin);
            db       = new MsManger(connInfo);
        }
Exemple #3
0
        private void SetStatusByLable(MetroLabel label, MetroTextBox textBox, MsManger db)
        {
            ConnectionState status = db.CheckConnetion();

            label.Text      = status.ToString();
            label.BackColor = GetColorByStatus(status);
            textBox.Text    = db.GetConnetionString();
        }
 public TableInfoRepo(MsConnetionInfo connInfo)
 {
     db = new MsManger(connInfo);
 }
Exemple #5
0
 public TableDataCopyServices()
 {
     oriDb = new MsManger(DataBase.Factory.ConnetionInfoFactory.GetMsOriginDbInfo());
     cpyDb = new MsManger(DataBase.Factory.ConnetionInfoFactory.GetMsCopyDbInfo());
 }