果糖网
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
README.md
|
|
@ -136,10 +136,10 @@ public static SqlSugarScope Db = new SqlSugarScope(new ConnectionConfig() |
|
|
|
tran.CommitTran();//这个提交不能漏掉 |
|
|
|
} |
|
|
|
``` |
|
|
|
### Feature6 : Query Filter |
|
|
|
### Feature6 : Query filter |
|
|
|
```cs |
|
|
|
//set Filter |
|
|
|
db.QueryFilter.Add(new TableFilterItem<Order>(it => it.Name.Contains("a"))); //为Order表置全局条件 |
|
|
|
db.QueryFilter.Add(new TableFilterItem<Order>(it => it.Name.Contains("a"))); |
|
|
|
|
|
|
|
|
|
|
|
db.Queryable<Order>().ToList(); |
|
|
|