public Repository(ProjectManagerContext context) { Db = context; DbSet = Db.Set <TEntity>(); }
public Repository(ProjectManagerContext context) { _context = context; _set = _context.Set <ET>(); }
public async Task <List <T> > GetAll() { return(await _db.Set <T>().AsNoTracking().ToListAsync()); }
public Repository(ProjectManagerContext context) { Context = context; Entities = Context.Set <TEntity>(); }