Browse Source

Update README.md

SqlSugar5
果糖网 2 years ago
committed by GitHub
parent
commit
f26e65edf5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      README.md

8
README.md

@ -57,14 +57,14 @@ FROM
WHERE WHERE
([o].[Id] = @Id0) ([o].[Id] = @Id0)
``` ```
### Feature2 : Include query ### Feature2 :Include Query、Insert、Delete and Update
```cs Include Query、Insert、Delete and Update ```cs
var list=db.Queryable<Test>() var list=db.Queryable<Test>()
.Includes(x => x.Provinces,x=>x.Citys ,x=>x.Street) .Includes(x => x.Provinces,x=>x.Citys ,x=>x.Street) //multi-level
.Includes(x => x.ClassInfo) .Includes(x => x.ClassInfo)
.ToList(); .ToList();
db.InsertNav(list) db.InsertNav(list) //Finer operation than EFCore's SaveChange
.Include(z1 => z1.SchoolA) .Include(z1 => z1.SchoolA)
.ThenInclude(z1 => z1.RoomList) .ThenInclude(z1 => z1.RoomList)
.Include(z1 => z1.Books) .Include(z1 => z1.Books)

Loading…
Cancel
Save