mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Update README.md
This commit is contained in:
@@ -106,7 +106,7 @@ JoinType.Left,st.SchoolId==sc.Id
|
|||||||
### subquery
|
### subquery
|
||||||
```c
|
```c
|
||||||
var getAll = db.Queryable<Student, School>((st, sc) => new object[] {
|
var getAll = db.Queryable<Student, School>((st, sc) => new object[] {
|
||||||
JoinType.Left,st.Id==sc.Id})
|
JoinType.Left,st.Id==sc.Id})
|
||||||
.Where(st => st.Id == SqlFunc.Subqueryable<School>().Where(s => s.Id == st.Id).Select(s => s.Id))
|
.Where(st => st.Id == SqlFunc.Subqueryable<School>().Where(s => s.Id == st.Id).Select(s => s.Id))
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user