mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-16 16:50:41 +08:00
-
This commit is contained in:
parent
fdf5d67704
commit
24caf2b6f9
@ -58,6 +58,12 @@ namespace OrmTest.Demo
|
|||||||
name = it.Name,
|
name = it.Name,
|
||||||
id = SqlFunc.Subqueryable<School>().Where(s => s.Id == it.Id).Select(s => s.Id)
|
id = SqlFunc.Subqueryable<School>().Where(s => s.Id == it.Id).Select(s => s.Id)
|
||||||
}).ToList();
|
}).ToList();
|
||||||
|
|
||||||
|
var getAll5 = db.Queryable<Student>().Select(it =>
|
||||||
|
new Student {
|
||||||
|
Name = it.Name,
|
||||||
|
Id = SqlFunc.Subqueryable<School>().Where(s => s.Id == it.Id).Select(s => s.Id)
|
||||||
|
}).ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void Async()
|
private static void Async()
|
||||||
|
Loading…
Reference in New Issue
Block a user