/// <summary> ///根据数据库获取所有数据表 /// </summary> /// <param name="context"></param> /// <returns></returns> private string GetTableByDataBase(HttpContext context) { crudHelper = new CRUDHelper <object>(HttpContext.Current.Session["strConnection"]?.ToString(), HttpContext.Current.Session["strType"]?.ToString()); // crudHelper = new CRUDHelper<object>(globalVar.strConnection, globalVar.strType); int page = Convert.ToInt32(context.Request.Params["page"]); int rows = Convert.ToInt32(context.Request.Params["rows"]); return(crudHelper.SelectPageToJSONBySQL("user_tab_comments", page, rows, "TABLE_NAME")); }