This commit is contained in:
610262374@qq.com
2017-03-11 10:16:05 +08:00
parent 1e377d1119
commit a9ae43aad8
2 changed files with 4 additions and 3 deletions

View File

@@ -45,7 +45,8 @@ namespace OrmTest.UnitTest
var list = db.Queryable<Student, School,School>((st, sc,sc2) => new object[] {
JoinType.Left,st.SchoolId==sc.Id,
JoinType.Left,sc2.Id==sc.Id
}).Where(st => st.Id > 0).ToList();
}).Where(st => st.Id > 0)
.Select<School>((st) =>new School() { Id=st.Id}).ToList();
var list3 = db.Queryable("Student", "st")
.AddJoinInfo("School", "sh", "sh.id=st.schoolid")