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