public ActionResult GenerateModel()
        {
            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.GenerateModel(columns, model.TableName))
                    })
                };
            }
            catch { }

            return(actionResult);
        }