2021-02-02 19:51:07 -05:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
2021-02-02 20:06:56 -05:00
|
|
|
|
using System.Threading;
|
2021-02-02 19:51:07 -05:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace PoweredSoft.CQRS.DynamicQuery.Abstractions
|
|
|
|
|
{
|
|
|
|
|
public interface IAlterQueryableService<TSource, TDestination>
|
|
|
|
|
{
|
2021-02-02 20:06:56 -05:00
|
|
|
|
Task<IQueryable<TSource>> AlterQueryableAsync(IQueryable<TSource> query, IDynamicQuery dynamicQuery, CancellationToken cancellationToken = default);
|
2021-02-02 19:51:07 -05:00
|
|
|
|
}
|
|
|
|
|
public interface IAlterQueryableService<TSource, TDestination, TParams>
|
|
|
|
|
where TParams : class
|
|
|
|
|
{
|
2021-02-02 20:06:56 -05:00
|
|
|
|
Task<IQueryable<TSource>> AlterQueryableAsync(IQueryable<TSource> query, IDynamicQueryParams<TParams> dynamicQuery, CancellationToken cancellationToken = default);
|
2021-02-02 19:51:07 -05:00
|
|
|
|
}
|
|
|
|
|
}
|