diff --git a/docs/zh-Hans/Repositories.md b/docs/zh-Hans/Repositories.md index 241f971d4c..40335a4c5a 100644 --- a/docs/zh-Hans/Repositories.md +++ b/docs/zh-Hans/Repositories.md @@ -118,8 +118,8 @@ public class PersonRepository : EfCoreRepository, IPe public async Task FindByNameAsync(string name) { - var dbcontext = await GetDbContextAsync(); - return await dbcontext.Set() + var dbContext = await GetDbContextAsync(); + return await dbContext.Set() .Where(p => p.Name == name) .FirstOrDefaultAsync(); }