public async Task <IEnumerable <TEntity> > ExecuteAsync() { var ret = await queryable.ToListAsync() ?? new List <TEntity>(); queryable = dbContext.Set <TEntity>(); return(ret); }
/// <summary> /// Not a CRUD operation /// This will be removed, once the unit tests are rewritten /// </summary> public virtual IQueryable <TEntity> GetAll() => context.Set <TEntity>();
protected Query(JobDbContext dbContext) { this.dbContext = dbContext; queryable = dbContext.Set <TEntity>(); }
public Repository(JobDbContext context) { this.context = context; dbSet = context.Set <TEntity>(); }