16 lines
624 B
C#
16 lines
624 B
C#
|
using System.Linq;
|
|||
|
using System.Threading;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace OpenHarbor.CQRS.DynamicQuery.Abstractions;
|
|||
|
|
|||
|
public interface IAlterQueryableService<TSource, TDestination>
|
|||
|
{
|
|||
|
Task<IQueryable<TSource>> AlterQueryableAsync(IQueryable<TSource> query, IDynamicQuery dynamicQuery, CancellationToken cancellationToken = default);
|
|||
|
}
|
|||
|
|
|||
|
public interface IAlterQueryableService<TSource, TDestination, in TParams>
|
|||
|
where TParams : class
|
|||
|
{
|
|||
|
Task<IQueryable<TSource>> AlterQueryableAsync(IQueryable<TSource> query, IDynamicQueryParams<TParams> dynamicQuery, CancellationToken cancellationToken = default);
|
|||
|
}
|