コード例 #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));
 }
コード例 #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));
 }