Esempio n. 1
0
        private void executeNonQuery_DoWork(object sender, DoWorkEventArgs e)
        {
            string[] par         = e.Argument as string[];
            byte[]   resultBytes = SubmitCommand(_shellData, "DbManager/" + _dbType + "/ExecuteNonQuery", par);
            string   tmp         = ResultMatch.GetResultFromInterval(resultBytes, Encoding.GetEncoding(_shellData.WebCoding));

            e.Result = ConvertStrToDataTable(tmp);
        }
Esempio n. 2
0
        private void getColumnType_DoWork(object sender, DoWorkEventArgs e)
        {
            string[] par         = e.Argument as string[];
            byte[]   resultBytes = SubmitCommand(_shellData, "DbManager/" + _dbType + "/GetColumnType", par);
            string   tmp         = ResultMatch.GetResultFromInterval(resultBytes, Encoding.GetEncoding(_shellData.WebCoding));

            string[] columns = tmp.Split(new char[] { '\t' }, StringSplitOptions.RemoveEmptyEntries);
            e.Result = columns;
        }
Esempio n. 3
0
        private void getDdName_DoWork(object sender, DoWorkEventArgs e)
        {
            string par = e.Argument as string;

            byte[] resultBytes = _host.Core.SubmitCommand(_shellData, "DbManager/" + _dbType + "/GetDbName", new string[] { par });
            string tmp         = ResultMatch.GetResultFromInterval(resultBytes, Encoding.GetEncoding(_shellData.WebCoding));

            string[] dbs = tmp.Split(new char[] { '\t' }, StringSplitOptions.RemoveEmptyEntries);
            e.Result = dbs;
        }