mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
use more descriptive generic type name
This commit is contained in:
parent
f162dd8f7f
commit
929a18ae1f
1 changed files with 2 additions and 2 deletions
|
|
@ -15,9 +15,9 @@ public SeedService(FilterListsDbContext filterListsDbContext)
|
|||
this.filterListsDbContext = filterListsDbContext;
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<TMapped>> GetAll<TEntity, TMapped>() where TEntity : class
|
||||
public async Task<IEnumerable<TSeedDto>> GetAll<TEntity, TSeedDto>() where TEntity : class
|
||||
{
|
||||
return await filterListsDbContext.Set<TEntity>().AsNoTracking().ProjectTo<TMapped>().ToArrayAsync();
|
||||
return await filterListsDbContext.Set<TEntity>().AsNoTracking().ProjectTo<TSeedDto>().ToArrayAsync();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue