diff --git a/README.md b/README.md index bcd1da3c6..2013039f5 100644 --- a/README.md +++ b/README.md @@ -59,23 +59,24 @@ WHERE ``` ### Feature2 :Include Query、Insert、Delete and Update ```cs +//query by nav var list=db.Queryable() .Includes(x => x.Provinces,x=>x.Citys ,x=>x.Street) //multi-level .Includes(x => x.ClassInfo) .ToList(); - +//insert by nav db.InsertNav(list) //Finer operation than EFCore's SaveChange .Include(z1 => z1.SchoolA) .ThenInclude(z1 => z1.RoomList) .Include(z1 => z1.Books) .ExecuteCommand(); - +//delete by nav db.DeleteNav(it=>it.Id==1) .Include(z1 => z1.SchoolA) .ThenInclude(z1 => z1.RoomList) st .Include(z1 => z1.Books) .ExecuteCommand(); - +//update by nav db.UpdateNav(list) .Include(z1 => z1.SchoolA) .ThenInclude(z1 => z1.RoomList)