diff --git a/src/Lumina.Application/Common/DataAccess/Repositories/Common/Actions/IGetPaginatedRepositoryAction.cs b/src/Lumina.Application/Common/DataAccess/Repositories/Common/Actions/IGetPaginatedRepositoryAction.cs deleted file mode 100644 index 21ca90ce..00000000 --- a/src/Lumina.Application/Common/DataAccess/Repositories/Common/Actions/IGetPaginatedRepositoryAction.cs +++ /dev/null @@ -1,30 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Application.Common.DataAccess.Entities.Common; -using Lumina.Application.Common.DTO.Filtering; -using Lumina.Application.Common.DTO.Pagination; -using Lumina.Domain.Common.Primitives; -using Lumina.Domain.SharedKernel.Common.Enums.Common; -using System.Threading; -using System.Threading.Tasks; -#endregion - -namespace Lumina.Application.Common.DataAccess.Repositories.Common.Actions; - -/// -/// Interface defining the "get paginated" action for interacting with a generic persistence medium. -/// -/// The type used as a result for the "get paginated" action. It should implement . -public interface IGetPaginatedRepositoryAction where TModel : IStorageEntity -{ - /// - /// Gets paginated data of type from the storage medium. - /// - /// The type of the filter carrying the criteria used to filter the results. - /// The pagination data that includes current page and number of items per page to retrieve. If , all matching data is returned. - /// The name of the field by which to sort the results. - /// The direction in which to sort the results. - /// The model containing parameters used to filter results. - /// Cancellation token that can be used to stop the execution. - /// An containing either a paginated result of type , or an error. - Task>> GetPaginatedAsync(PaginationDataDto? paginationData, string? sortBy = null, SortOrder? sortOrder = null, TFilter? filterModel = null, CancellationToken cancellationToken = default) where TFilter : BaseFilterDto; -}