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
parent
commit
382fa4b3bb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      docs/en/Repositories.md

4
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();
}

Loading…
Cancel
Save