Browse Source

Update README.md

pull/12/MERGE
sunkaixuan 6 years ago
committed by GitHub
parent
commit
7c010a0b25
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      README.md

5
README.md

@ -112,10 +112,7 @@ var list6 = db.Queryable<Student, School,School>((st, sc,sc2) => st.SchoolId ==
//3 join page
var list7= db.Queryable<Student, School, School>((st, sc, sc2) => st.SchoolId == sc.Id && sc.Id == sc2.Id)
.Select((st, sc, sc2) => new { st.Name, st.Id, schoolName = sc.Name, schoolName2 = sc2.Name }).ToPageList(1,2);
```
#### left join
```cs
//join 2
var list = db.Queryable<Student, School>((st, sc) => new object[] {
JoinType.Left,st.SchoolId==sc.Id

Loading…
Cancel
Save