예제 #1
0
 private void RunQueries(IEnumerable <SqlAnalysisQuery> queries, AnalysisDictionary values)
 {
     using (var cnn = new SqlConnection(this.ConnectionString))
     {
         cnn.Open();
         var runner = new SqlAnalysisQueryRunner();
         foreach (var query in queries)
         {
             runner.Run(cnn, query, values, null);
         }
     }
 }
        private void RunQueries(
            IEnumerable <SqlAnalysisQuery> queries, AnalysisDictionary analysisResult, AnalysisDictionary values)
        {
            using (var cnn = new SqlConnection(this.ConnectionString))
            {
                cnn.Open();
                var runner = new SqlAnalysisQueryRunner();
                foreach (SqlAnalysisQuery query in queries)
                {
                    SqlParameter[] sqlParams;
                    this.CreateSQLParameterArray(values, out sqlParams);
                    runner.Run(cnn, query, analysisResult, sqlParams);
                }

                cnn.Close();
            }
        }