public PagedResult <TEntity> FindBy(Func <TEntity, bool> condition, int page, int pageSize) { IQueryable <TEntity> query = Db.Set <TEntity>().Where(condition).AsQueryable(); PagedResult <TEntity> result = this.GetPagedResultForQuery(query, page, pageSize); return(result); }
public Repository(WebMetasContext context) { Db = context; DbSet = Db.Set <TEntity>(); }