Update README.md

This commit is contained in:
sunkaixuan 2019-04-29 20:24:43 +08:00 committed by GitHub
parent 891b760104
commit 9bd7f83ed1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,10 +86,6 @@ var group = db.Queryable<Student>().GroupBy(it => it.Id)
.Select(it =>new { id = SqlFunc.AggregateCount(it.Id) }).ToList();p
//Page
var pageIndex = 1;
var pageSize = 2;
var totalCount = 0;
//page
var page = db.Queryable<Student>().ToPageList(pageIndex, pageSize, ref totalCount);
//page join
@ -112,8 +108,9 @@ var getAll = db.Queryable<Student, School>((st, sc) => new JoinQueryInfos(
JoinType.Left,st.Id==sc.Id))
.Where(st => st.Id == SqlFunc.Subqueryable<School>().Where(s => s.Id == st.Id).Select(s => s.Id))
.ToList();
```
More https://github.com/sunkaixuan/SqlSugar/wiki/1.Queryable
## 2. SqlSugarClient.Updateable
We use it to Update
```cs