ICrudAppService.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. using Abp.Application.Services.Dto;
  2. namespace Abp.Application.Services
  3. {
  4. public interface ICrudAppService<TEntityDto>
  5. : ICrudAppService<TEntityDto, int>
  6. where TEntityDto : IEntityDto<int>
  7. {
  8. }
  9. public interface ICrudAppService<TEntityDto, TPrimaryKey>
  10. : ICrudAppService<TEntityDto, TPrimaryKey, PagedAndSortedResultRequestDto>
  11. where TEntityDto : IEntityDto<TPrimaryKey>
  12. {
  13. }
  14. public interface ICrudAppService<TEntityDto, TPrimaryKey, in TGetAllInput>
  15. : ICrudAppService<TEntityDto, TPrimaryKey, TGetAllInput, TEntityDto, TEntityDto>
  16. where TEntityDto : IEntityDto<TPrimaryKey>
  17. {
  18. }
  19. public interface ICrudAppService<TEntityDto, TPrimaryKey, in TGetAllInput, in TCreateInput>
  20. : ICrudAppService<TEntityDto, TPrimaryKey, TGetAllInput, TCreateInput, TCreateInput>
  21. where TEntityDto : IEntityDto<TPrimaryKey>
  22. where TCreateInput : IEntityDto<TPrimaryKey>
  23. {
  24. }
  25. public interface ICrudAppService<TEntityDto, TPrimaryKey, in TGetAllInput, in TCreateInput, in TUpdateInput>
  26. : ICrudAppService<TEntityDto, TPrimaryKey, TGetAllInput, TCreateInput, TUpdateInput, EntityDto<TPrimaryKey>>
  27. where TEntityDto : IEntityDto<TPrimaryKey>
  28. where TUpdateInput : IEntityDto<TPrimaryKey>
  29. {
  30. }
  31. public interface ICrudAppService<TEntityDto, TPrimaryKey, in TGetAllInput, in TCreateInput, in TUpdateInput, in TGetInput>
  32. : ICrudAppService<TEntityDto, TPrimaryKey, TGetAllInput, TCreateInput, TUpdateInput, TGetInput, EntityDto<TPrimaryKey>>
  33. where TEntityDto : IEntityDto<TPrimaryKey>
  34. where TUpdateInput : IEntityDto<TPrimaryKey>
  35. where TGetInput : IEntityDto<TPrimaryKey>
  36. {
  37. }
  38. public interface ICrudAppService<TEntityDto, TPrimaryKey, in TGetAllInput, in TCreateInput, in TUpdateInput, in TGetInput, in TDeleteInput>
  39. : IApplicationService
  40. where TEntityDto : IEntityDto<TPrimaryKey>
  41. where TUpdateInput : IEntityDto<TPrimaryKey>
  42. where TGetInput : IEntityDto<TPrimaryKey>
  43. where TDeleteInput : IEntityDto<TPrimaryKey>
  44. {
  45. TEntityDto Get(TGetInput input);
  46. PagedResultDto<TEntityDto> GetAll(TGetAllInput input);
  47. TEntityDto Create(TCreateInput input);
  48. TEntityDto Update(TUpdateInput input);
  49. void Delete(TDeleteInput input);
  50. }
  51. }