YiShaAdmin快速开发框架

https://gitee.com/liukuo362573/YiShaAdmin/tree/master (貌似没怎么维护了,登陆有些安全漏洞问题)

开箱即可用,

数据访问使用了前几年流行的仓储模式,个人不怎么喜欢,实际使用时可以自己改造下

1.使用微软官方EF用法,参考https://www.cnblogs.com/mmclog/p/15568204.html

2.使用ado.net,直接web项目加个sqlhelper即可,配合Newtonsoft.Json把datatable转json输出到前端

netcore注入cfg

private SqlHelper db { get; }
public TestController(IConfiguration cfg)
        {
            db = new SqlHelper(cfg["ConnectionString:DB_Test"]);
        }

 

posted @ 2022-03-30 11:37  毛毛虫!  阅读(351)  评论(0编辑  收藏  举报