Update README.md

This commit is contained in:
果糖网 2021-10-11 08:43:12 +08:00 committed by GitHub
parent 61e655ab5f
commit d4a083b83f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,18 +127,18 @@ public static SqlSugarScope Db = new SqlSugarScope(new ConnectionConfig()
using (var tran = Db.UseTran()) using (var tran = Db.UseTran())
{ {
//业务代码
new Test2().Insert(XX); new Test2().Insert(XX);
new Test1().Insert(XX); new Test1().Insert(XX);
.....出错会自动回滚 .....
.... ....
tran.CommitTran();//这个提交不能漏掉 tran.CommitTran();
} }
``` ```
### Feature6 : Query filter ### Feature6 : Query filter
```cs ```cs
//set Filter //set filter
db.QueryFilter.Add(new TableFilterItem<Order>(it => it.Name.Contains("a"))); db.QueryFilter.Add(new TableFilterItem<Order>(it => it.Name.Contains("a")));