public ActionResult GenerateExtraDataAccess() { var model = new Mo.SysDatabase(); UpdateModel(model); var actionResult = default(AgileJsonResult); try { dynamic wherePart = new ExpandoObject(); wherePart.DBName = model.DbName; wherePart.ID = model.TableID; var columns = Da.Sys.GetColumns(Config.ConnectionString_Read, wherePart); actionResult = new AgileJsonResult() { Content = AgileJson.ToJson(new { result = HttpUtility.UrlDecode(GenerateCode.GetExtraDataAccess(columns, model.TableName)) }) }; } catch { } return(actionResult); }