This commit is contained in:
610262374@qq.com
2017-03-16 09:59:32 +08:00
parent b92bdb6740
commit c9051ddbd4
3 changed files with 38 additions and 26 deletions

View File

@@ -37,7 +37,7 @@ namespace OrmTest.UnitTest
var list = db.Queryable<School,School>((st,st2)=>new object[] {
JoinType.Left,st.Id==st2.Id
})
.Where(st => st.Id > 0)
.Where<Student,School>((st,sc) => st.Id > 0)
.Select(st => new ViewModelStudent { School=st}).ToList();
var list2 = db.Queryable<Student>()