|
@ -136,9 +136,10 @@ namespace OrmTest |
|
|
var list4=db.Queryable<SchoolA>() |
|
|
var list4=db.Queryable<SchoolA>() |
|
|
.LeftJoin<StudentA>((x, y) => (x.SchoolId == y.SchoolId)) |
|
|
.LeftJoin<StudentA>((x, y) => (x.SchoolId == y.SchoolId)) |
|
|
.LeftJoin<BookA>((x,y,z)=>y.SchoolId==y.SchoolId) |
|
|
.LeftJoin<BookA>((x,y,z)=>y.SchoolId==y.SchoolId) |
|
|
.Select((x,y,z) => new UnitView01() |
|
|
.Select((x,y) => new UnitView01() |
|
|
{ |
|
|
{ |
|
|
Name=x.SchoolName, |
|
|
Name=x.SchoolName, |
|
|
|
|
|
Id="1" |
|
|
},true).ToList(); |
|
|
},true).ToList(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|