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); }
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); }
public TableDataCopyServices() { oriDb = new MsManger(DataBase.Factory.ConnetionInfoFactory.GetMsOriginDbInfo()); cpyDb = new MsManger(DataBase.Factory.ConnetionInfoFactory.GetMsCopyDbInfo()); }