update

2881099
2022-08-18 15:20:55 +08:00
parent c53530fbe9
commit 3ac08b19f0

@@ -4,9 +4,8 @@ FreeSql 基础层实现了 Select/Update/Delete 可设置的全局过滤器功
public static AsyncLocal<Guid> TenantId { get; set; } = new AsyncLocal<Guid>();
fsql.GlobalFilter
.Apply<TestAddEnum>("test1", a => a.Id == TenantId.Value)
.Apply<AuthorTest>("test2", a => a.Id == 111)
.Apply<AuthorTest>("test3", a => a.Name == "11")
.Apply<ITenant>("test1", a => a.TenantId == TenantId.Value)
.Apply<AuthorTest>("test2", a => a.Name == "11")
.ApplyOnly<AuthorTest>("test3", a => a.Name == "11")
//指定类型精准设置