Class AbstractKeyReadOnlyAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>
Inheritance
AbstractKeyReadOnlyAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>
Assembly: Volo.Abp.Ddd.Application.dll
Syntax
public abstract class AbstractKeyReadOnlyAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput> : ApplicationService, IAvoidDuplicateCrossCuttingConcerns, IValidationEnabled, IUnitOfWorkEnabled, IAuditingEnabled, IGlobalFeatureCheckingEnabled, ITransientDependency, IReadOnlyAppService<TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>, IApplicationService, IRemoteService where TEntity : class, IEntity
Type Parameters
Name |
Description |
TEntity |
|
TGetOutputDto |
|
TGetListOutputDto |
|
TKey |
|
TGetListInput |
|
Constructors
AbstractKeyReadOnlyAppService(IReadOnlyRepository<TEntity>)
Declaration
protected AbstractKeyReadOnlyAppService(IReadOnlyRepository<TEntity> repository)
Parameters
Properties
GetListPolicyName
Declaration
protected virtual string? GetListPolicyName { get; set; }
Property Value
GetPolicyName
Declaration
protected virtual string? GetPolicyName { get; set; }
Property Value
ReadOnlyRepository
Declaration
protected IReadOnlyRepository<TEntity> ReadOnlyRepository { get; }
Property Value
Methods
ApplyDefaultSorting(IQueryable<TEntity>)
Declaration
protected virtual IQueryable<TEntity> ApplyDefaultSorting(IQueryable<TEntity> query)
Parameters
Returns
ApplyPaging(IQueryable<TEntity>, TGetListInput)
Declaration
protected virtual IQueryable<TEntity> ApplyPaging(IQueryable<TEntity> query, TGetListInput input)
Parameters
Type |
Name |
Description |
IQueryable<TEntity> |
query |
|
TGetListInput |
input |
|
Returns
ApplySorting(IQueryable<TEntity>, TGetListInput)
Declaration
protected virtual IQueryable<TEntity> ApplySorting(IQueryable<TEntity> query, TGetListInput input)
Parameters
Type |
Name |
Description |
IQueryable<TEntity> |
query |
|
TGetListInput |
input |
|
Returns
CheckGetListPolicyAsync()
Declaration
protected virtual Task CheckGetListPolicyAsync()
Returns
CheckGetPolicyAsync()
Declaration
protected virtual Task CheckGetPolicyAsync()
Returns
CreateFilteredQueryAsync(TGetListInput)
Declaration
protected virtual Task<IQueryable<TEntity>> CreateFilteredQueryAsync(TGetListInput input)
Parameters
Type |
Name |
Description |
TGetListInput |
input |
|
Returns
GetAsync(TKey)
Declaration
public virtual Task<TGetOutputDto> GetAsync(TKey id)
Parameters
Type |
Name |
Description |
TKey |
id |
|
Returns
Type |
Description |
Task<TGetOutputDto> |
|
GetEntityByIdAsync(TKey)
Declaration
protected abstract Task<TEntity> GetEntityByIdAsync(TKey id)
Parameters
Type |
Name |
Description |
TKey |
id |
|
Returns
Type |
Description |
Task<TEntity> |
|
GetListAsync(TGetListInput)
Declaration
public virtual Task<PagedResultDto<TGetListOutputDto>> GetListAsync(TGetListInput input)
Parameters
Type |
Name |
Description |
TGetListInput |
input |
|
Returns
MapToGetListOutputDto(TEntity)
Declaration
protected virtual TGetListOutputDto MapToGetListOutputDto(TEntity entity)
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
Returns
Type |
Description |
TGetListOutputDto |
|
MapToGetListOutputDtoAsync(TEntity)
Declaration
protected virtual Task<TGetListOutputDto> MapToGetListOutputDtoAsync(TEntity entity)
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
Returns
Type |
Description |
Task<TGetListOutputDto> |
|
MapToGetListOutputDtosAsync(List<TEntity>)
Declaration
protected virtual Task<List<TGetListOutputDto>> MapToGetListOutputDtosAsync(List<TEntity> entities)
Parameters
Type |
Name |
Description |
List<TEntity> |
entities |
|
Returns
Type |
Description |
Task<List<TGetListOutputDto>> |
|
MapToGetOutputDto(TEntity)
Declaration
protected virtual TGetOutputDto MapToGetOutputDto(TEntity entity)
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
Returns
Type |
Description |
TGetOutputDto |
|
MapToGetOutputDtoAsync(TEntity)
Declaration
protected virtual Task<TGetOutputDto> MapToGetOutputDtoAsync(TEntity entity)
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
Returns
Type |
Description |
Task<TGetOutputDto> |
|
Implements
Extension Methods