Class CrudAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>
Inheritance
AbstractKeyReadOnlyAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>
AbstractKeyCrudAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>
CrudAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>
Implements
ICrudAppService<TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>
IReadOnlyAppService<TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>
ICreateUpdateAppService<TGetOutputDto, TKey, TCreateInput, TUpdateInput>
ICreateAppService<TGetOutputDto, TCreateInput>
IUpdateAppService<TGetOutputDto, TKey, TUpdateInput>
IDeleteAppService<TKey>
Inherited Members
Namespace: Volo.Abp.Application.Services
Assembly: Volo.Abp.Ddd.Application.dll
Syntax
public abstract class CrudAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput> : AbstractKeyCrudAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>, IAvoidDuplicateCrossCuttingConcerns, IValidationEnabled, IUnitOfWorkEnabled, IAuditingEnabled, IGlobalFeatureCheckingEnabled, ITransientDependency, ICrudAppService<TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>, IReadOnlyAppService<TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>, ICreateUpdateAppService<TGetOutputDto, TKey, TCreateInput, TUpdateInput>, ICreateAppService<TGetOutputDto, TCreateInput>, IUpdateAppService<TGetOutputDto, TKey, TUpdateInput>, IDeleteAppService<TKey>, IApplicationService, IRemoteService where TEntity : class, IEntity<TKey> where TGetOutputDto : IEntityDto<TKey> where TGetListOutputDto : IEntityDto<TKey>
Type Parameters
| Name | Description |
|---|---|
| TEntity | |
| TGetOutputDto | |
| TGetListOutputDto | |
| TKey | |
| TGetListInput | |
| TCreateInput | |
| TUpdateInput |
Constructors
CrudAppService(IRepository<TEntity, TKey>)
Declaration
protected CrudAppService(IRepository<TEntity, TKey> repository)
Parameters
| Type | Name | Description |
|---|---|---|
| IRepository<TEntity, TKey> | repository |
Properties
Repository
Declaration
protected IRepository<TEntity, TKey> Repository { get; }
Property Value
| Type | Description |
|---|---|
| IRepository<TEntity, TKey> |
Methods
ApplyDefaultSorting(IQueryable<TEntity>)
Declaration
protected override IQueryable<TEntity> ApplyDefaultSorting(IQueryable<TEntity> query)
Parameters
| Type | Name | Description |
|---|---|---|
| IQueryable<TEntity> | query |
Returns
| Type | Description |
|---|---|
| IQueryable<TEntity> |
Overrides
DeleteByIdAsync(TKey)
Declaration
protected override Task DeleteByIdAsync(TKey id)
Parameters
| Type | Name | Description |
|---|---|---|
| TKey | id |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
GetEntityByIdAsync(TKey)
Declaration
protected override Task<TEntity> GetEntityByIdAsync(TKey id)
Parameters
| Type | Name | Description |
|---|---|---|
| TKey | id |
Returns
| Type | Description |
|---|---|
| Task<TEntity> |
Overrides
MapToEntity(TUpdateInput, TEntity)
Declaration
protected override void MapToEntity(TUpdateInput updateInput, TEntity entity)
Parameters
| Type | Name | Description |
|---|---|---|
| TUpdateInput | updateInput | |
| TEntity | entity |