mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-18 14:20:55 +08:00
update
2
过滤器.md
2
过滤器.md
@@ -8,7 +8,7 @@ fsql.GlobalFilter
|
||||
.Apply<AuthorTest>("test2", a => a.Id == 111)
|
||||
.Apply<AuthorTest>("test3", a => a.Name == "11")
|
||||
.ApplyIf<TestAddEnum>("test4", () => TenantId.Value != Guid.Empty, a => a.Id == TenantId.Value);
|
||||
//1.9.0 ApplyIf 第二个参数委托的返回值 true 才生效
|
||||
//1.9.0 ApplyIf 委托的返回值(第二个参数) true 才生效
|
||||
```
|
||||
|
||||
Apply 泛型参数可以设置为任何类型,当使用 Select/Update/Delete 方法时会进行过滤器匹配尝试(try catch):
|
||||
|
||||
Reference in New Issue
Block a user