Blog.Core/Blog.Core.Model
Lemon.NoCry bd484137a6 🎨 完美优雅的处理多租户-分表方案
1.扩展原有的MultiTenantAttribute 标识多库、多表
2.扩展原有的种子数据生成 用于多表的种子数据
3.巧妙优雅使用Sqlsugar表映射 解决多租户分表问题,原有代码无需改动 登录用户如果是租户用户自动切换到租户分表

目前来看(如果想要升级业务 扩展SAAS)
多表方案:代码侵入最小
id方案:侵入最大,需要增加列
多库方案:相对少

如果是从0到1 最推荐多库
如果是从0.5到1 最推荐多表
2023-02-21 01:50:51 +08:00
..
CustomEnums 🎨 增加多租户-分库方案 2023-02-18 01:17:19 +08:00
IDS4DbModels //修改使用 model备注字段作为切换数据库条件,使用sqlsugar TenantAttribute存放数据库ConnId 2022-10-11 10:53:32 +08:00
Models 🎨 完美优雅的处理多租户-分表方案 2023-02-21 01:50:51 +08:00
Tenants 🎨 完美优雅的处理多租户-分表方案 2023-02-21 01:50:51 +08:00
ViewModels use model binding in InsertPicture 2022-04-27 15:50:13 +08:00
ApiResponse.cs Token 增加签名时间 🐛解决一个小bug MessageModel.success 赋值错误 2022-07-23 18:53:26 +08:00
Blog.Core.Model.csproj 🎨 多租户 2023-02-07 00:27:55 +08:00
HttpEnum.cs Http Polly集成 2022-03-09 17:59:49 +08:00
Love.cs remove all no need using 2020-06-04 22:58:53 +08:00
MessageModel.cs Merge branch 'master' of github.com:hudingwen/Blog.Core 2021-07-12 00:05:34 +08:00
PageModel.cs Optimize PageModel 2022-03-04 15:31:33 +08:00
PaginationModel.cs fix: format the code. #236 2022-03-14 15:15:05 +08:00
ResponseEnum.cs remove all no need using 2020-06-04 22:58:53 +08:00
TableModel.cs remove all no need using 2020-06-04 22:58:53 +08:00