From 882cde77345de4e3c930a55f80d311a5022df2ee Mon Sep 17 00:00:00 2001 From: MagicalConch <37917403+git102347501@users.noreply.github.com> Date: Wed, 2 Feb 2022 15:51:01 +0800 Subject: [PATCH] Update Repositories.md --- docs/zh-Hans/Repositories.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); }