Show / Hide Table of Contents

Class CrudAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>

Inheritance
System.Object
ApplicationService
AbstractKeyReadOnlyAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>
AbstractKeyCrudAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>
CrudAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>
CrudAppService<TEntity, TEntityDto, TKey, TGetListInput, TCreateInput, TUpdateInput>
Implements
IAvoidDuplicateCrossCuttingConcerns
IValidationEnabled
IUnitOfWorkEnabled
IAuditingEnabled
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
Inherited Members
AbstractKeyCrudAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>.Repository
AbstractKeyCrudAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>.CreatePolicyName
AbstractKeyCrudAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>.UpdatePolicyName
AbstractKeyCrudAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>.DeletePolicyName
AbstractKeyCrudAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>.CreateAsync(TCreateInput)
AbstractKeyCrudAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>.UpdateAsync(TKey, TUpdateInput)
AbstractKeyCrudAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>.DeleteAsync(TKey)
AbstractKeyCrudAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>.DeleteByIdAsync(TKey)
AbstractKeyCrudAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>.CheckCreatePolicyAsync()
AbstractKeyCrudAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>.CheckUpdatePolicyAsync()
AbstractKeyCrudAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>.CheckDeletePolicyAsync()
AbstractKeyCrudAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>.MapToEntityAsync(TCreateInput)
AbstractKeyCrudAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>.MapToEntity(TCreateInput)
AbstractKeyCrudAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>.SetIdForGuids(TEntity)
AbstractKeyCrudAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>.MapToEntityAsync(TUpdateInput, TEntity)
AbstractKeyCrudAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>.MapToEntity(TUpdateInput, TEntity)
AbstractKeyCrudAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>.TryToSetTenantId(TEntity)
AbstractKeyCrudAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>.HasTenantIdProperty(TEntity)
AbstractKeyReadOnlyAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>.ReadOnlyRepository
AbstractKeyReadOnlyAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>.GetPolicyName
AbstractKeyReadOnlyAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>.GetListPolicyName
AbstractKeyReadOnlyAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>.GetAsync(TKey)
AbstractKeyReadOnlyAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>.GetListAsync(TGetListInput)
AbstractKeyReadOnlyAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>.GetEntityByIdAsync(TKey)
AbstractKeyReadOnlyAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>.CheckGetPolicyAsync()
AbstractKeyReadOnlyAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>.CheckGetListPolicyAsync()
AbstractKeyReadOnlyAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>.ApplySorting(IQueryable<TEntity>, TGetListInput)
AbstractKeyReadOnlyAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>.ApplyDefaultSorting(IQueryable<TEntity>)
AbstractKeyReadOnlyAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>.ApplyPaging(IQueryable<TEntity>, TGetListInput)
AbstractKeyReadOnlyAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>.CreateFilteredQuery(TGetListInput)
AbstractKeyReadOnlyAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>.MapToGetOutputDtoAsync(TEntity)
AbstractKeyReadOnlyAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>.MapToGetOutputDto(TEntity)
AbstractKeyReadOnlyAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>.MapToGetListOutputDtosAsync(List<TEntity>)
AbstractKeyReadOnlyAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>.MapToGetListOutputDtoAsync(TEntity)
AbstractKeyReadOnlyAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>.MapToGetListOutputDto(TEntity)
ApplicationService.ServiceProvider
ApplicationService.ServiceProviderLock
ApplicationService.LazyGetRequiredService<TService>(TService)
ApplicationService.LazyGetRequiredService<TRef>(Type, TRef)
ApplicationService.CommonPostfixes
ApplicationService.AppliedCrossCuttingConcerns
ApplicationService.UnitOfWorkManager
ApplicationService.AsyncExecuter
ApplicationService.ObjectMapperContext
ApplicationService.ObjectMapper
ApplicationService.GuidGenerator
ApplicationService.LoggerFactory
ApplicationService.CurrentTenant
ApplicationService.CurrentUser
ApplicationService.SettingProvider
ApplicationService.Clock
ApplicationService.AuthorizationService
ApplicationService.FeatureChecker
ApplicationService.StringLocalizerFactory
ApplicationService.L
ApplicationService.LocalizationResource
ApplicationService.CurrentUnitOfWork
ApplicationService.Logger
ApplicationService.CheckPolicyAsync(String)
ApplicationService.CreateLocalizer()
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, 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
Volo.Abp.Application.Services.AbstractKeyReadOnlyAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>.ApplyDefaultSorting(IQueryable<TEntity>)

DeleteByIdAsync(TKey)

Declaration
protected override Task DeleteByIdAsync(TKey id)
Parameters
Type Name Description
TKey id
Returns
Type Description
Task
Overrides
Volo.Abp.Application.Services.AbstractKeyCrudAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>.DeleteByIdAsync(TKey)

GetEntityByIdAsync(TKey)

Declaration
protected override Task<TEntity> GetEntityByIdAsync(TKey id)
Parameters
Type Name Description
TKey id
Returns
Type Description
Task<TEntity>
Overrides
Volo.Abp.Application.Services.AbstractKeyReadOnlyAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>.GetEntityByIdAsync(TKey)

MapToEntity(TUpdateInput, TEntity)

Declaration
protected override void MapToEntity(TUpdateInput updateInput, TEntity entity)
Parameters
Type Name Description
TUpdateInput updateInput
TEntity entity
Overrides
Volo.Abp.Application.Services.AbstractKeyCrudAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>.MapToEntity(TUpdateInput, TEntity)

Implements

IAvoidDuplicateCrossCuttingConcerns
IValidationEnabled
IUnitOfWorkEnabled
IAuditingEnabled
ITransientDependency
ICrudAppService<TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>
IReadOnlyAppService<TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>
ICreateUpdateAppService<TGetOutputDto, TKey, TCreateUpdateInput, TUpdateInput>
ICreateAppService<TGetOutputDto, TCreateInput>
IUpdateAppService<TGetOutputDto, TKey, TUpdateInput>
IDeleteAppService<TKey>
IApplicationService
IRemoteService

Extension Methods

AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft