コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }