mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 10:08:19 +08:00
Update README.md
This commit is contained in:
@@ -83,7 +83,7 @@ var isAny2 = db.Queryable<Student>().Any(it => it.Id == -1);
|
|||||||
var getListByRename = db.Queryable<School>().AS("Student").ToList();
|
var getListByRename = db.Queryable<School>().AS("Student").ToList();
|
||||||
var group = db.Queryable<Student>().GroupBy(it => it.Id)
|
var group = db.Queryable<Student>().GroupBy(it => it.Id)
|
||||||
.Having(it => SqlFunc.AggregateCount(it.Id) > 10)
|
.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
|
//Page
|
||||||
var page = db.Queryable<Student>().ToPageList(pageIndex, pageSize, ref totalCount);
|
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)
|
.OrderBy((st,sc)=>sc.Id,OrderByType.Desc)
|
||||||
.Select<ViewModelStudent>().ToList();
|
.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
|
## 2. SqlSugarClient.Updateable
|
||||||
We use it to Update
|
We use it to Update
|
||||||
|
Reference in New Issue
Block a user