Browse Source
Merge pull request #9559 from abpframework/cotur/documenting
Fix `Repositories` documentation
pull/9569/head
Halil İbrahim Kalkan
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
docs/en/Repositories.md
|
|
|
@ -222,8 +222,8 @@ public class PersonRepository : EfCoreRepository<MyDbContext, Person, Guid>, IPe |
|
|
|
|
|
|
|
public async Task<Person> FindByNameAsync(string name) |
|
|
|
{ |
|
|
|
var dbSet = await GetDbSetAsync(); |
|
|
|
return await dbSet.Set<Person>() |
|
|
|
var dbContext = await GetDbContextAsync(); |
|
|
|
return await dbContext.Set<Person>() |
|
|
|
.Where(p => p.Name == name) |
|
|
|
.FirstOrDefaultAsync(); |
|
|
|
} |
|
|
|
|