Browse Source

Update README.md

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

6
README.md

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

Loading…
Cancel
Save