GithubHelp home page GithubHelp logo

发现问题两个问题:1.数据库不是主键的guid类型的生成模型的类型是guid,2.当起别名时,删除方法报错 about vue.netcore HOT 7 CLOSED

cq-panda avatar cq-panda commented on September 26, 2024
发现问题两个问题:1.数据库不是主键的guid类型的生成模型的类型是guid,2.当起别名时,删除方法报错

from vue.netcore.

Comments (7)

Devin-hjc avatar Devin-hjc commented on September 26, 2024

还有,像删除方法那样,是不是会有sql注入的问题呢

from vue.netcore.

cq-panda avatar cq-panda commented on September 26, 2024

非常感谢!
问题1,2你获取下代码就行了。
问题3:目录只支持自增ID与GUID作为主键,删除操作时这行代码就是对数据类型校验, IEnumerable<(bool, string, object)> validation = keyProperty.ValidationValueForDbType(keys);

from vue.netcore.

Devin-hjc avatar Devin-hjc commented on September 26, 2024

感谢,哈哈还有两个问题
1.同步表结构时,也会有上面“别名”的问题
2.如果我想在每一行(固定列)添加一个自定义方法的按钮(如 删除等),能实现吗

from vue.netcore.

cq-panda avatar cq-panda commented on September 26, 2024

第一个问题,我确认下
第二个问题,可以在前端表对应的扩展js中找到methods属性添加一个onInit方法即可实现,可参考文档组件api【代码生成后页面viewGrid】(文档还没写完),具体Demo扩展文件src\views\document\docApi\doc_viewGrid\doc_viewGirdExtension.js

image

from vue.netcore.

Devin-hjc avatar Devin-hjc commented on September 26, 2024

了解,谢谢

from vue.netcore.

cq-panda avatar cq-panda commented on September 26, 2024

onInit方法中操作this.columns,你可以干你自己任何想干的事

from vue.netcore.

Devin-hjc avatar Devin-hjc commented on September 26, 2024

赞👍,棒

from vue.netcore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.