Browse Source

Update README.md

pull/8/head
果糖网 3 years ago
committed by GitHub
parent
commit
d4a083b83f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      README.md

8
README.md

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

Loading…
Cancel
Save