From 4673cf3cf3d639620238bb004bbb47f5f7b93cf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=9C=E7=B3=96=E7=BD=91?= <610262374@qq.com> Date: Wed, 13 Mar 2024 17:02:21 +0800 Subject: [PATCH] Update README.md --- README.md | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) 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