diff --git a/README.md b/README.md index 962bc985a..23794b813 100644 --- a/README.md +++ b/README.md @@ -68,23 +68,18 @@ var list=db.Queryable() .Includes(x => x.ClassInfo) .ToList(); -//insert by nav - db.InsertNav(list) //Finer operation than EFCore's SaveChange - .Include(z1 => z1.SchoolA).ThenInclude(z1 => z1.RoomList)//multi-level - .Include(z1 => z1.Books) - .ExecuteCommand(); - -//delete by nav - db.DeleteNav(it=>it.Id==1) - .Include(z1 => z1.SchoolA) .ThenInclude(z1 => z1.RoomList)//multi-level - .Include(z1 => z1.Books) - .ExecuteCommand(); - -//update by nav - db.UpdateNav(list) - .Include(z1 => z1.SchoolA) .ThenInclude(z1 => z1.RoomList)//multi-level - .Include(z1 => z1.Books) - .ExecuteCommand(); +var list5= db.Queryable() + .Includes(x => x.school_001, x => x.rooms) + .Includes(x => x.books) + .LeftJoin((x, y) => x.Id==y.sid) + .Select((x,y) => new Student_004DTO + { + SchoolId = x.SchoolId, + books = x.books, + school_001 = x.school_001, + Name=y.Name + }) + .ToList(); ``` ### Feature3 : Page query