Same as the previous question

This commit is contained in:
sunkaixuan
2022-06-27 21:40:51 +08:00
parent c23231e0ad
commit f5334d7187
2 changed files with 13 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ namespace OrmTest
db.Insertable(new UnitaStudentA() { StudentId = 6, SchoolId = 3, Name = "青鸟学生" }).ExecuteCommand();
var list=db.Queryable<UnitaStudentA>()
.Includes(x => x.SchoolA).ToList();
.Includes(x => x.SchoolA).Where(x=>x.SchoolA.School_Name=="a").ToList();
}
public class UnitaStudentA
{