mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-18 09:44:39 +08:00
-
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user