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); }
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; }
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; }