mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-18 17:48:11 +08:00
-
This commit is contained in:
@@ -34,7 +34,10 @@ namespace OrmTest.UnitTest
|
||||
// .Select(it => new ViewModelStudent { Name = it.Name }).ToList();
|
||||
//var list2 = db.Queryable<Student>()
|
||||
// .Where(st => st.Id > 0)
|
||||
// .Select("id").ToList();
|
||||
// .Select("id").ToList();
|
||||
var list = db.Queryable<Student, School>((st, sc) => new object[] {
|
||||
JoinType.Left,st.SchoolId==sc.Id
|
||||
}).Where(st => st.Id > 0).Select<Student>("*").ToList();
|
||||
var list3 = db.Queryable<Student>()
|
||||
.Where(st => st.Id > 0)
|
||||
.Select(it => new ViewModelStudent2 { Student = it }).ToList();
|
||||
|
Reference in New Issue
Block a user