示例#1
0
 public ActionResult CustomReportSql(string report)
 {
     try
     {
         var m = new CustomReportsModel(DbUtil.Db, report);
         return(Content($"<pre style='font-family:monospace'>{m.Sql()}\n</pre>"));
     }
     catch (Exception ex)
     {
         return(Message(ex.Message));
     }
 }
示例#2
0
 public ActionResult CustomReportSql(Guid id, string report)
 {
     try
     {
         var m = new CustomReportsModel(DbUtil.Db);
         return(Content("<pre style='font-family:monospace'>{0}\n</pre>".Fmt(
                            m.Sql(id, report))));
     }
     catch (Exception ex)
     {
         return(Message(ex.Message));
     }
 }