private bool ReadConfig(out string args) { if (FrmSqlConfig.GetConfig(this.Owner, out string server, out string dbName, out string userId, out string password)) { args = $"-U {userId} -P {password} -S {server} -d {dbName}"; return(true); } args = null; return(false); }
private bool ReadConfig(out string args) { if (FrmSqlConfig.GetConfig(this.Owner, out string server, out string dbName, out string userId, out string password)) { args = $"data source={server};initial catalog={dbName};user id={userId};password={password};MultipleActiveResultSets=True"; return(true); } args = null; return(false); }