Commit Graph

110 Commits

Author SHA1 Message Date
ansonzhang
225b86c0db
Update Blog.Core.Repository.csproj 2023-03-09 23:16:34 +08:00
dependabot[bot]
2d8d99e8d3
Bump MongoDB.Driver from 2.17.1 to 2.19.0 in /Blog.Core.Repository
Bumps [MongoDB.Driver](https://github.com/mongodb/mongo-csharp-driver) from 2.17.1 to 2.19.0.
- [Release notes](https://github.com/mongodb/mongo-csharp-driver/releases)
- [Commits](https://github.com/mongodb/mongo-csharp-driver/compare/v2.17.1...v2.19.0)

---
updated-dependencies:
- dependency-name: MongoDB.Driver
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-04 00:12:57 +00:00
Lemon.NoCry
bd484137a6 🎨 完美优雅的处理多租户-分表方案
1.扩展原有的MultiTenantAttribute 标识多库、多表
2.扩展原有的种子数据生成 用于多表的种子数据
3.巧妙优雅使用Sqlsugar表映射 解决多租户分表问题,原有代码无需改动 登录用户如果是租户用户自动切换到租户分表

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

如果是从0到1 最推荐多库
如果是从0.5到1 最推荐多表
2023-02-21 01:50:51 +08:00
Lemon.NoCry
296201998d 🎨 增加多租户-分库方案
1.自动初始化维护租户库
2.多租户库种子数据维护

分库方案 TenantByDbController
2023-02-18 01:17:19 +08:00
赵畅畅
3ba534bf11 fix:修复仓储开启多库支持拼写问题 2022-12-12 12:25:08 +08:00
ansonzhang
f180ac7671
Merge pull request #302 from 773596523/master2
 UnitOfWork简化事务操作
2022-10-29 11:13:49 +08:00
Lemon.NoCry
b5cd8bcbd1 统一命名 2022-10-14 18:36:12 +08:00
LemonNoCry
bf57fba6e2 🎨 多库操作:处理configId小写 2022-10-14 17:44:24 +08:00
LemonNoCry
dabbc7ea3b UnitOfWork简化事务操作 2022-10-14 11:34:45 +08:00
LemonNoCry
10b18e4150 优化操作多库 2022-10-14 11:19:28 +08:00
Nine
afd20399d4 修改Appsettings 驼峰命名规范为AppSettings,增加sqlsugar model 定义表字段注释示例在Blog.Core.Model.Models.SysUserInfo 2022-10-11 14:10:28 +08:00
Nine
26d97687b1 //修改使用 model备注字段作为切换数据库条件,使用sqlsugar TenantAttribute存放数据库ConnId 2022-10-11 10:53:32 +08:00
zhanganzhong
784644e032 feat: update nuget package 2022-09-07 18:29:51 +08:00
LemonNoCry
8e7e4f02a5 🎨 统一命名空间 2022-08-05 09:29:38 +08:00
LemonNoCry
6bcde27c82 增加事务传播机制
1.UseTran特性中增加事务传播特性,具体看Propagation
2.原有是直接默认嵌套事务不灵活
测试看TransactionController
2022-08-04 15:16:08 +08:00
KimiDing
4a942dd4e4 MongoRepository优化 2022-06-06 12:10:17 +08:00
weiguang3100
4caf3cdfa1 修改DeleteById(object id) 低版本报错问题 2022-04-25 11:31:25 +08:00
anjoy8
2bc4fbf297 Fixex #271 bug 2022-04-20 18:14:27 +08:00
anjoy8
1093a7b76a fix: format the code. #236 2022-03-14 15:15:05 +08:00
__Leo__
d166b02cd5 Optimize PageModel 2022-03-04 15:31:33 +08:00
Linlccc
3ba865704a 防止同一范围内,异步执行事务误触非当前线程事务 2022-02-26 14:39:05 +08:00
anjoy8
fb2eab87d4 fix: some warning 2022-02-09 17:13:02 +08:00
anjoy8
c6ea94f71b Fixed #230 bug. 2022-01-29 15:59:29 +08:00
ansonzhang
dc828820f9
Merge pull request #213 from anjoy8/net6-rc
Net6 rc
2021-11-18 14:48:36 +08:00
tianyu
8eb59ee3da 田雨
修改引用对象 SqlSugarScope
2021-11-18 10:00:48 +08:00
anjoy8
bd53e42a22 update to .net6.0 2021-11-09 18:02:41 +08:00
hudingwen
81e8a44441 分支测试
目录调整
2021-07-29 15:29:56 +08:00
wuare
b2ccdd8426 remove unused param tag 2021-06-01 13:51:55 +08:00
ansonzhang
bdea9208f6
Fixed #180 Bug 2021-04-30 10:51:12 +08:00
zhanganzhong
a26cf8e116 fix bug #165 2021-03-09 09:17:48 +08:00
hudingwen
780d220e6f 开放SqlsugarClient方便DAL层使用 2021-03-03 13:38:17 +08:00
anjoy8
b64e95274c Update IBaseRepository.cs 2020-12-28 11:02:08 +08:00
Mac.Nine
1d4a3f2acb Modify query data list according to
specific column,
modify filter condition (original string) to expression,
which can be used for multiple filter conditions
修改按照特定列查询数据列表,修改过滤条件(原string)修改为表达式,可用于多过滤条件
2020-12-18 14:25:59 +08:00
anjoy8
9fbfd63215 rename mongodb context name 2020-12-07 03:16:21 +00:00
Mac.Nine
e25324c6f9 按照特定列查询数据列表带条件排序 2020-12-04 16:41:06 +08:00
anjoy8
e4156c3f07 sqlsugar specific column query
sqlsugar特定列查询
2020-12-04 06:15:08 +00:00
anjoy8
bda0cf026e Update Blog.Core.Repository.csproj 2020-12-03 03:29:19 +00:00
anjoy8
e31fe21b87 Ⓜ️ Inherit MongoDB functionality
集成MongoDb功能
2020-12-03 03:01:58 +00:00
ansonzhang
cb41ccb259 try to use event bus in project
尝试使用事件总线
2020-11-19 11:59:36 +00:00
ansonzhang
47b45a14c9 💯 Migrate to.NET 5.0
迁移到.net 5.0
2020-11-11 12:52:56 +00:00
anjoy8
f2ebb921d5 Update BaseRepository.cs 2020-10-11 10:10:44 +08:00
835318109@qq.com
25887556fe 菜单修改时,批量更新关系表中的接口与菜单的关系 2020-08-15 17:11:08 +08:00
anjoy8
01fedb3996 Update BaseRepository.cs 2020-08-14 12:03:39 +08:00
anjoy8
42369ee018 weakrepo 2020-07-30 18:33:09 +08:00
anjoy8
af0195f47a migrate 2020-07-09 17:50:03 +08:00
anjoy8
8fb8d80f20 rename webapi 2020-06-22 12:04:09 +08:00
anjoy8
17cf90660d test muchtable for page 2020-06-12 18:13:32 +08:00
anjoy8
5d27ef4b6a Reflection generates all models
反射生成全部实体
2020-06-08 13:29:39 +08:00
anjoy8
6819c3a899 remove all no need using
去掉不必要的引用
2020-06-04 22:58:53 +08:00
anjoy8
7b752536fb sqlsugar mapper much table 2020-05-18 19:40:04 +08:00