mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 13:06:50 +08:00
Update README.md
This commit is contained in:
parent
ae17bcd39d
commit
e83ff27619
@ -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…
Reference in New Issue
Block a user