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
9f3108c390
commit
53432765b3
@ -64,6 +64,7 @@ var list=db.Queryable<Test>()
|
|||||||
.Includes(x => x.Provinces,x=>x.Citys ,x=>x.Street) //multi-level
|
.Includes(x => x.Provinces,x=>x.Citys ,x=>x.Street) //multi-level
|
||||||
.Includes(x => x.ClassInfo)
|
.Includes(x => x.ClassInfo)
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
//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)
|
||||||
@ -76,6 +77,7 @@ var list=db.Queryable<Test>()
|
|||||||
.ThenInclude(z1 => z1.RoomList) st
|
.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)
|
||||||
|
Loading…
Reference in New Issue
Block a user