Show / Hide Table of Contents

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

Inheritance
object
ApplicationService
AbstractKeyReadOnlyAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>
AbstractKeyCrudAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>
AbstractKeyCrudAppService<TEntity, TEntityDto, TKey, TGetListInput, TCreateInput, TUpdateInput>
CrudAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>
Implements
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
Inherited Members
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>.CreateFilteredQueryAsync(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)
AbstractKeyReadOnlyAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>.ReadOnlyRepository
AbstractKeyReadOnlyAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>.GetPolicyName
AbstractKeyReadOnlyAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>.GetListPolicyName
ApplicationService.CheckPolicyAsync(string)
ApplicationService.CreateLocalizer()
ApplicationService.LazyServiceProvider
ApplicationService.ServiceProvider
ApplicationService.CommonPostfixes
ApplicationService.AppliedCrossCuttingConcerns
ApplicationService.UnitOfWorkManager
ApplicationService.AsyncExecuter
ApplicationService.ObjectMapperContext
ApplicationService.ObjectMapper
ApplicationService.GuidGenerator
ApplicationService.LoggerFactory
ApplicationService.CurrentTenant
ApplicationService.DataFilter
ApplicationService.CurrentUser
ApplicationService.SettingProvider
ApplicationService.Clock
ApplicationService.AuthorizationService
ApplicationService.FeatureChecker
ApplicationService.StringLocalizerFactory
ApplicationService.L
ApplicationService.LocalizationResource
ApplicationService.CurrentUnitOfWork
ApplicationService.Logger
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Application.Services
Assembly: Volo.Abp.Ddd.Application.dll
Syntax
public abstract class AbstractKeyCrudAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput> : AbstractKeyReadOnlyAppService<TEntity, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>, 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
Type Parameters
Name Description
TEntity
TGetOutputDto
TGetListOutputDto
TKey
TGetListInput
TCreateInput
TUpdateInput

Constructors

AbstractKeyCrudAppService(IRepository<TEntity>)

Declaration
protected AbstractKeyCrudAppService(IRepository<TEntity> repository)
Parameters
Type Name Description
IRepository<TEntity> repository

Properties

CreatePolicyName

Declaration
protected virtual string? CreatePolicyName { get; set; }
Property Value
Type Description
string

DeletePolicyName

Declaration
protected virtual string? DeletePolicyName { get; set; }
Property Value
Type Description
string

Repository

Declaration
protected IRepository<TEntity> Repository { get; }
Property Value
Type Description
IRepository<TEntity>

UpdatePolicyName

Declaration
protected virtual string? UpdatePolicyName { get; set; }
Property Value
Type Description
string

Methods

CheckCreatePolicyAsync()

Declaration
protected virtual Task CheckCreatePolicyAsync()
Returns
Type Description
Task

CheckDeletePolicyAsync()

Declaration
protected virtual Task CheckDeletePolicyAsync()
Returns
Type Description
Task

CheckUpdatePolicyAsync()

Declaration
protected virtual Task CheckUpdatePolicyAsync()
Returns
Type Description
Task

CreateAsync(TCreateInput)

Declaration
public virtual Task<TGetOutputDto> CreateAsync(TCreateInput input)
Parameters
Type Name Description
TCreateInput input
Returns
Type Description
Task<TGetOutputDto>

DeleteAsync(TKey)

Declaration
public virtual Task DeleteAsync(TKey id)
Parameters
Type Name Description
TKey id
Returns
Type Description
Task

DeleteByIdAsync(TKey)

Declaration
protected abstract Task DeleteByIdAsync(TKey id)
Parameters
Type Name Description
TKey id
Returns
Type Description
Task

HasTenantIdProperty(TEntity)

Declaration
protected virtual bool HasTenantIdProperty(TEntity entity)
Parameters
Type Name Description
TEntity entity
Returns
Type Description
bool

MapToEntity(TCreateInput)

Declaration
protected virtual TEntity MapToEntity(TCreateInput createInput)
Parameters
Type Name Description
TCreateInput createInput
Returns
Type Description
TEntity

MapToEntity(TUpdateInput, TEntity)

Declaration
protected virtual void MapToEntity(TUpdateInput updateInput, TEntity entity)
Parameters
Type Name Description
TUpdateInput updateInput
TEntity entity

MapToEntityAsync(TCreateInput)

Declaration
protected virtual Task<TEntity> MapToEntityAsync(TCreateInput createInput)
Parameters
Type Name Description
TCreateInput createInput
Returns
Type Description
Task<TEntity>

MapToEntityAsync(TUpdateInput, TEntity)

Declaration
protected virtual Task MapToEntityAsync(TUpdateInput updateInput, TEntity entity)
Parameters
Type Name Description
TUpdateInput updateInput
TEntity entity
Returns
Type Description
Task

SetIdForGuids(TEntity)

Declaration
protected virtual void SetIdForGuids(TEntity entity)
Parameters
Type Name Description
TEntity entity

TryToSetTenantId(TEntity)

Declaration
protected virtual void TryToSetTenantId(TEntity entity)
Parameters
Type Name Description
TEntity entity

UpdateAsync(TKey, TUpdateInput)

Declaration
public virtual Task<TGetOutputDto> UpdateAsync(TKey id, TUpdateInput input)
Parameters
Type Name Description
TKey id
TUpdateInput input
Returns
Type Description
Task<TGetOutputDto>

Implements

IAvoidDuplicateCrossCuttingConcerns
IValidationEnabled
IUnitOfWorkEnabled
IAuditingEnabled
IGlobalFeatureCheckingEnabled
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)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform