Esempio n. 1
0
        public JsonResult UpdateDescription(int TableId, int FieldId, string Description)
        {
            if (TableId < 1 || FieldId < 1 || string.IsNullOrWhiteSpace(Description))
            {
                return(Json(new
                {
                    Code = 0,
                    Info = "参数格式不正确"
                }));
            }

            var result = DbMapManager.UpdateDescription(TableId, FieldId, Description);

            return(Json(new
            {
                Code = result,
                Info = result > 0 ? "修改成功" : "修改失败"
            }));
        }