Category "repository-pattern"

How to write Repository method for .ThenInclude in EF Core 2

I'm trying to write a repository method for Entity Framework Core 2.0 that can handle returning child collections of properties using .ThenInclude, but I'm havi

.Error CS1061 'Task<IEnumerable>' does not contain a definition for 'Where' and no accessible extension method 'Where'

My generic repository is as follows ( I have similar in synchronious and it works) public virtual async Task<IEnumerable<TEntity>> GetAsyn( Expr

Repository implementation in Application, Domain and Infrastructure Layer (DDD)

I have a project structure like this : Here, IApplicationDbContext.cs interface defined in Application layer and it's implementation is done in Infrastructure