mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
-
This commit is contained in:
parent
fdf5d67704
commit
24caf2b6f9
@ -58,6 +58,12 @@ namespace OrmTest.Demo
|
||||
name = it.Name,
|
||||
id = SqlFunc.Subqueryable<School>().Where(s => s.Id == it.Id).Select(s => s.Id)
|
||||
}).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()
|
||||
|
Loading…
Reference in New Issue
Block a user