Exemple #1
0
        public async Task <IEnumerable <TEntity> > ExecuteAsync()
        {
            var ret = await queryable.ToListAsync() ?? new List <TEntity>();

            queryable = dbContext.Set <TEntity>();
            return(ret);
        }
Exemple #2
0
 /// <summary>
 ///     Not a CRUD operation
 ///     This will be removed, once the unit tests are rewritten
 /// </summary>
 public virtual IQueryable <TEntity> GetAll() => context.Set <TEntity>();
Exemple #3
0
 protected Query(JobDbContext dbContext)
 {
     this.dbContext = dbContext;
     queryable      = dbContext.Set <TEntity>();
 }
Exemple #4
0
 public Repository(JobDbContext context)
 {
     this.context = context;
     dbSet        = context.Set <TEntity>();
 }