mirror of
https://github.com/anjoy8/Blog.Core.git
synced 2024-09-20 23:48:27 +08:00
bd484137a6
1.扩展原有的MultiTenantAttribute 标识多库、多表 2.扩展原有的种子数据生成 用于多表的种子数据 3.巧妙优雅使用Sqlsugar表映射 解决多租户分表问题,原有代码无需改动 登录用户如果是租户用户自动切换到租户分表 目前来看(如果想要升级业务 扩展SAAS) 多表方案:代码侵入最小 id方案:侵入最大,需要增加列 多库方案:相对少 如果是从0到1 最推荐多库 如果是从0.5到1 最推荐多表 |
||
---|---|---|
.. | ||
CustomEnums | ||
IDS4DbModels | ||
Models | ||
Tenants | ||
ViewModels | ||
ApiResponse.cs | ||
Blog.Core.Model.csproj | ||
HttpEnum.cs | ||
Love.cs | ||
MessageModel.cs | ||
PageModel.cs | ||
PaginationModel.cs | ||
ResponseEnum.cs | ||
TableModel.cs |