- 修复 IUpdateJoin + 全局过滤器 + 从表不生效问题;#1612

This commit is contained in:
2881099
2023-09-11 12:40:02 +08:00
parent 265c2d3324
commit a809dd2517
4 changed files with 134 additions and 0 deletions

View File

@ -600,6 +600,13 @@ namespace base_entity
BaseEntity.Initialization(fsql, () => _asyncUow.Value);
#endregion
fsql.GlobalFilter.Apply<User1>("test01", a => a.IsDeleted == false);
var updatejoin031sql = fsql.Update<User1>()
.Join<UserGroup>((a, b) => a.GroupId == b.Id)
.Set((a, b) => b.GroupName == a.Username + "b.groupname")
.ToSql();
fsql.UseJsonMap();
fsql.Select<MiDevice>().Where(a => a.FormLocking == null).Count();