SqlSugar框架 DB类 ConnectionString:连接字符串从底层配置文件获取
需导入Sqlsugar命名空间进行使用,与数据库进行交互保证类名和字段的一致性public class DBContext<T> where T : class, new() { /// <summary> /// 数据库实例 /// </summary> private SqlSugarClient db; private static DBContext<T>...
原创
2022-05-31 15:37:23 ·
1932 阅读 ·
0 评论