Beispiel #1
0
 protected virtual async Task <List <TEntity> > GetAll <TEntity, TPrimaryKey, TGetAllInput>(IQueryable <TEntity> queryable,
                                                                                            TGetAllInput input = null)
     where TEntity : class, IEntity <TPrimaryKey>
     where TGetAllInput : class, IPageQueryItems
 {
     return(await QueryableStatics.GetAll <TEntity, TPrimaryKey, TGetAllInput>(queryable, input));
 }
Beispiel #2
0
 protected virtual async Task <PagedResultDto <TEntityDto> > GetAll <TEntity, TPrimaryKey, TGetAllInput, TEntityDto>(
     IQueryable <TEntity> queryable,
     TGetAllInput input = null
     )
     where TEntity : class, IEntity <TPrimaryKey>
     where TGetAllInput : class, IPageQueryItems
 {
     return(await QueryableStatics.GetAll <TEntity, TPrimaryKey, TGetAllInput, TEntityDto>(queryable, Map <TEntityDto>, input));
 }
Beispiel #3
0
 /// <summary>
 /// Should apply paging if needed.
 /// </summary>
 /// <param name="query">The query.</param>
 /// <param name="input">The input.</param>
 protected virtual IQueryable <TEntity> ApplyPaging <TEntity, TPrimaryKey, TGetAllInput>(IQueryable <TEntity> query, TGetAllInput input = null)
     where TEntity : IEntity <TPrimaryKey>
     where TGetAllInput : class
 {
     return(QueryableStatics.ApplyPaging <TEntity, TPrimaryKey, TGetAllInput>(query, input));
 }
Beispiel #4
0
 protected virtual IQueryable <TEntity> ApplyWhere <TEntity, TPrimaryKey, TGetAllInput>(IQueryable <TEntity> queryable, TGetAllInput input = null)
     where TEntity : class, IEntity <TPrimaryKey>
     where TGetAllInput : class, IPageQueryItems
 {
     return(QueryableStatics.ApplyWhere <TEntity, TPrimaryKey, TGetAllInput>(queryable, input));
 }