Beispiel #1
0
        public static string DoAnalysis(string host = null)
        {
            if (host.HasValue())
            {
                HttpRuntime.Cache["testhost"] = host;
                DbUtil.DbDispose();
            }
            var sb = new StringBuilder();
            var m  = new QueryCodeModel(CodeSql.Analyze);

            foreach (var q in m.List)
            {
                sb.Append(m.Analyze(q));
            }
            return(sb.ToString());
        }
Beispiel #2
0
 public static string DoAnalysis(string host = null)
 {
     if (host.HasValue())
     {
         HttpRuntime.Cache["testhost"] = host;
         DbUtil.DbDispose();
     }
     var sb = new StringBuilder();
     var m = new QueryCodeModel(CodeSql.Analyze);
     foreach(var q in m.List)
         sb.Append(m.Analyze(q));
     return sb.ToString();
 }