Class AbstractKeyReadOnlyAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>
Inheritance
object
AbstractKeyReadOnlyAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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
| Type |
Name |
Description |
| System.Linq.IQueryable<T><TEntity> |
query |
|
Returns
| Type |
Description |
| System.Linq.IQueryable<T><TEntity> |
|
ApplyPaging(IQueryable<TEntity>, TGetListInput)
Declaration
protected virtual IQueryable<TEntity> ApplyPaging(IQueryable<TEntity> query, TGetListInput input)
Parameters
| Type |
Name |
Description |
| System.Linq.IQueryable<T><TEntity> |
query |
|
| TGetListInput |
input |
|
Returns
| Type |
Description |
| System.Linq.IQueryable<T><TEntity> |
|
ApplySorting(IQueryable<TEntity>, TGetListInput)
Declaration
protected virtual IQueryable<TEntity> ApplySorting(IQueryable<TEntity> query, TGetListInput input)
Parameters
| Type |
Name |
Description |
| System.Linq.IQueryable<T><TEntity> |
query |
|
| TGetListInput |
input |
|
Returns
| Type |
Description |
| System.Linq.IQueryable<T><TEntity> |
|
CheckGetListPolicyAsync()
Declaration
protected virtual Task CheckGetListPolicyAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
CheckGetPolicyAsync()
Declaration
protected virtual Task CheckGetPolicyAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
CreateFilteredQueryAsync(TGetListInput)
Declaration
protected virtual Task<IQueryable<TEntity>> CreateFilteredQueryAsync(TGetListInput input)
Parameters
| Type |
Name |
Description |
| TGetListInput |
input |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<TResult><System.Linq.IQueryable<T><TEntity>> |
|
GetAsync(TKey)
Declaration
public virtual Task<TGetOutputDto> GetAsync(TKey id)
Parameters
| Type |
Name |
Description |
| TKey |
id |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<TResult><TGetOutputDto> |
|
GetEntityByIdAsync(TKey)
Declaration
protected abstract Task<TEntity> GetEntityByIdAsync(TKey id)
Parameters
| Type |
Name |
Description |
| TKey |
id |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<TResult><TEntity> |
|
GetListAsync(TGetListInput)
Declaration
public virtual Task<PagedResultDto<TGetListOutputDto>> GetListAsync(TGetListInput input)
Parameters
| Type |
Name |
Description |
| TGetListInput |
input |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<TResult><PagedResultDto<TGetListOutputDto>> |
|
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 |
| System.Threading.Tasks.Task<TResult><TGetListOutputDto> |
|
MapToGetListOutputDtosAsync(List<TEntity>)
Declaration
protected virtual Task<List<TGetListOutputDto>> MapToGetListOutputDtosAsync(List<TEntity> entities)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.List<T><TEntity> |
entities |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<TResult><System.Collections.Generic.List<T><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 |
| System.Threading.Tasks.Task<TResult><TGetOutputDto> |
|
Implements
Extension Methods