Update README.md

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

View File

@ -83,7 +83,7 @@ var isAny2 = db.Queryable<Student>().Any(it => it.Id == -1);
var getListByRename = db.Queryable<School>().AS("Student").ToList();
var group = db.Queryable<Student>().GroupBy(it => it.Id)
.Having(it => SqlFunc.AggregateCount(it.Id) > 10)
.Select(it =>new { id = SqlFunc.AggregateCount(it.Id) }).ToList();p
.Select(it =>new { id = SqlFunc.AggregateCount(it.Id) }).ToList();
//Page
var page = db.Queryable<Student>().ToPageList(pageIndex, pageSize, ref totalCount);
@ -104,12 +104,9 @@ JoinType.Left,st.SchoolId==sc.Id
.OrderBy((st,sc)=>sc.Id,OrderByType.Desc)
.Select<ViewModelStudent>().ToList();
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
[![More]](https://github.com/sunkaixuan/SqlSugar/wiki/1.Queryable)
## 2. SqlSugarClient.Updateable
We use it to Update