コード例 #1
0
        /// <summary>
        /// 获取测试参数名称
        /// </summary>
        /// <param name="q"></param>
        /// <param name="useIndex"></param>
        /// <returns></returns>
        private List <TestParmNameInfo> GetTestParmNames(QueryArgs q)
        {
            List <TestParmNameInfo> results = new List <TestParmNameInfo>();
            var rdr = _Connection.ExecuteQuery(q.TableName, q.Condition);

            while (rdr.Read())
            {
                TestParmNameInfo tstPrmNameInfo = new TestParmNameInfo();
                tstPrmNameInfo.MTest    = (int)rdr["MTest"];
                tstPrmNameInfo.RunType  = (int)rdr["RunType"];
                tstPrmNameInfo.OrderNum = (int)rdr["OrderNum"];
                tstPrmNameInfo.ParmType = (int)rdr["ParmType"];
                tstPrmNameInfo.ParmName = (string)rdr["ParmName"];
                results.Add(tstPrmNameInfo);
            }

            return(results);
        }
コード例 #2
0
ファイル: RecordQuery.cs プロジェクト: sulerzh/DbExporter
        /// <summary>
        /// 获取测试参数名称
        /// </summary>
        /// <param name="q"></param>
        /// <param name="useIndex"></param>
        /// <returns></returns>
        private List<TestParmNameInfo> GetTestParmNames(QueryArgs q)
        {
            List<TestParmNameInfo> results = new List<TestParmNameInfo>();
            var rdr = _Connection.ExecuteQuery(q.TableName, q.Condition);
            while (rdr.Read())
            {
                TestParmNameInfo tstPrmNameInfo = new TestParmNameInfo();
                tstPrmNameInfo.MTest = (int)rdr["MTest"];
                tstPrmNameInfo.RunType = (int)rdr["RunType"];
                tstPrmNameInfo.OrderNum = (int)rdr["OrderNum"];
                tstPrmNameInfo.ParmType = (int)rdr["ParmType"];
                tstPrmNameInfo.ParmName = (string)rdr["ParmName"];
                results.Add(tstPrmNameInfo);
            }

            return results;
        }