From 1f5f615c65c33c2ff7cbad22bfc65baea407ad70 Mon Sep 17 00:00:00 2001 From: Enis Necipoglu Date: Mon, 28 Nov 2022 17:41:59 +0300 Subject: [PATCH] Update POST.md --- .../2022-11-28-ef-bulk-operations/POST.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/en/Community-Articles/2022-11-28-ef-bulk-operations/POST.md b/docs/en/Community-Articles/2022-11-28-ef-bulk-operations/POST.md index f138b7ef91..27b8022fac 100644 --- a/docs/en/Community-Articles/2022-11-28-ef-bulk-operations/POST.md +++ b/docs/en/Community-Articles/2022-11-28-ef-bulk-operations/POST.md @@ -31,17 +31,17 @@ public class BookEntityFrameworkCoreRepository : EfCoreRepository x.IsListed && x.PublishedOn.Year <= 2022) - .ExecuteUpdate(s => s.SetProperty(x => x.IsListed, x => false)); + .ExecuteUpdateAsync(s => s.SetProperty(x => x.IsListed, x => false)); } public async Task DeleteOldBooksAsync() { var dbSet = await GetDbSetAsync(); - dbSet.Where(x => x.PublishedOn.Year <= 2000) - .ExecuteDelete(); + await dbSet.Where(x => x.PublishedOn.Year <= 2000) + .ExecuteDeleteAsync(); } public async Task ImportAsync(List books)