diff --git a/docs/en/Repositories.md b/docs/en/Repositories.md index 7ed10b9bb8..dc82876efb 100644 --- a/docs/en/Repositories.md +++ b/docs/en/Repositories.md @@ -222,8 +222,8 @@ public class PersonRepository : EfCoreRepository, IPe public async Task FindByNameAsync(string name) { - var dbSet = await GetDbSetAsync(); - return await dbSet.Set() + var dbContext = await GetDbContextAsync(); + return await dbContext.Set() .Where(p => p.Name == name) .FirstOrDefaultAsync(); }