Browse Source

Update README.md

pull/25/head
果糖网 2 years ago
committed by GitHub
parent
commit
ae17bcd39d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      README.md

9
README.md

@ -69,22 +69,19 @@ var list=db.Queryable<Test>()
//insert by nav //insert by nav
db.InsertNav(list) //Finer operation than EFCore's SaveChange db.InsertNav(list) //Finer operation than EFCore's SaveChange
.Include(z1 => z1.SchoolA) .Include(z1 => z1.SchoolA).ThenInclude(z1 => z1.RoomList) //root->schoola->roomList
.ThenInclude(z1 => z1.RoomList)
.Include(z1 => z1.Books) .Include(z1 => z1.Books)
.ExecuteCommand(); .ExecuteCommand();
//delete by nav //delete by nav
db.DeleteNav<Student>(it=>it.Id==1) db.DeleteNav<Student>(it=>it.Id==1)
.Include(z1 => z1.SchoolA) .Include(z1 => z1.SchoolA) .ThenInclude(z1 => z1.RoomList) //root->schoola->roomList
.ThenInclude(z1 => z1.RoomList) st
.Include(z1 => z1.Books) .Include(z1 => z1.Books)
.ExecuteCommand(); .ExecuteCommand();
//update by nav //update by nav
db.UpdateNav(list) db.UpdateNav(list)
.Include(z1 => z1.SchoolA) .Include(z1 => z1.SchoolA) .ThenInclude(z1 => z1.RoomList)//root->schoola->roomList
.ThenInclude(z1 => z1.RoomList)
.Include(z1 => z1.Books) .Include(z1 => z1.Books)
.ExecuteCommand(); .ExecuteCommand();
``` ```

Loading…
Cancel
Save