| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- using System.Threading.Tasks;
- using Abp.Application.Services.Dto;
- namespace Abp.Application.Services
- {
- public interface IAsyncCrudAppService<TEntityDto>
- : IAsyncCrudAppService<TEntityDto, int>
- where TEntityDto : IEntityDto<int>
- {
- }
- public interface IAsyncCrudAppService<TEntityDto, TPrimaryKey>
- : IAsyncCrudAppService<TEntityDto, TPrimaryKey, PagedAndSortedResultRequestDto>
- where TEntityDto : IEntityDto<TPrimaryKey>
- {
- }
- public interface IAsyncCrudAppService<TEntityDto, TPrimaryKey, in TGetAllInput>
- : IAsyncCrudAppService<TEntityDto, TPrimaryKey, TGetAllInput, TEntityDto, TEntityDto>
- where TEntityDto : IEntityDto<TPrimaryKey>
- {
- }
- public interface IAsyncCrudAppService<TEntityDto, TPrimaryKey, in TGetAllInput, in TCreateInput>
- : IAsyncCrudAppService<TEntityDto, TPrimaryKey, TGetAllInput, TCreateInput, TCreateInput>
- where TEntityDto : IEntityDto<TPrimaryKey>
- where TCreateInput : IEntityDto<TPrimaryKey>
- {
- }
- public interface IAsyncCrudAppService<TEntityDto, TPrimaryKey, in TGetAllInput, in TCreateInput, in TUpdateInput>
- : IAsyncCrudAppService<TEntityDto, TPrimaryKey, TGetAllInput, TCreateInput, TUpdateInput, EntityDto<TPrimaryKey>>
- where TEntityDto : IEntityDto<TPrimaryKey>
- where TUpdateInput : IEntityDto<TPrimaryKey>
- {
- }
- public interface IAsyncCrudAppService<TEntityDto, TPrimaryKey, in TGetAllInput, in TCreateInput, in TUpdateInput, in TGetInput>
- : IAsyncCrudAppService<TEntityDto, TPrimaryKey, TGetAllInput, TCreateInput, TUpdateInput, TGetInput, EntityDto<TPrimaryKey>>
- where TEntityDto : IEntityDto<TPrimaryKey>
- where TUpdateInput : IEntityDto<TPrimaryKey>
- where TGetInput : IEntityDto<TPrimaryKey>
- {
- }
- public interface IAsyncCrudAppService<TEntityDto, TPrimaryKey, in TGetAllInput, in TCreateInput, in TUpdateInput, in TGetInput, in TDeleteInput>
- : IApplicationService
- where TEntityDto : IEntityDto<TPrimaryKey>
- where TUpdateInput : IEntityDto<TPrimaryKey>
- where TGetInput : IEntityDto<TPrimaryKey>
- where TDeleteInput : IEntityDto<TPrimaryKey>
- {
- Task<TEntityDto> Get(TGetInput input);
- Task<PagedResultDto<TEntityDto>> GetAll(TGetAllInput input);
- Task<TEntityDto> Create(TCreateInput input);
- Task<TEntityDto> Update(TUpdateInput input);
- Task Delete(TDeleteInput input);
- }
- }
|