mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update README.md
This commit is contained in:
parent
27b5348cb1
commit
4673cf3cf3
29
README.md
29
README.md
@ -68,23 +68,18 @@ var list=db.Queryable<Test>()
|
|||||||
.Includes(x => x.ClassInfo)
|
.Includes(x => x.ClassInfo)
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
//insert by nav
|
var list5= db.Queryable<Student_004>()
|
||||||
db.InsertNav(list) //Finer operation than EFCore's SaveChange
|
.Includes(x => x.school_001, x => x.rooms)
|
||||||
.Include(z1 => z1.SchoolA).ThenInclude(z1 => z1.RoomList)//multi-level
|
.Includes(x => x.books)
|
||||||
.Include(z1 => z1.Books)
|
.LeftJoin<Order>((x, y) => x.Id==y.sid)
|
||||||
.ExecuteCommand();
|
.Select((x,y) => new Student_004DTO
|
||||||
|
{
|
||||||
//delete by nav
|
SchoolId = x.SchoolId,
|
||||||
db.DeleteNav<Student>(it=>it.Id==1)
|
books = x.books,
|
||||||
.Include(z1 => z1.SchoolA) .ThenInclude(z1 => z1.RoomList)//multi-level
|
school_001 = x.school_001,
|
||||||
.Include(z1 => z1.Books)
|
Name=y.Name
|
||||||
.ExecuteCommand();
|
})
|
||||||
|
.ToList();
|
||||||
//update by nav
|
|
||||||
db.UpdateNav(list)
|
|
||||||
.Include(z1 => z1.SchoolA) .ThenInclude(z1 => z1.RoomList)//multi-level
|
|
||||||
.Include(z1 => z1.Books)
|
|
||||||
.ExecuteCommand();
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Feature3 : Page query
|
### Feature3 : Page query
|
||||||
|
Loading…
Reference in New Issue
Block a user