2022-05-10 15:45:47 -07:00
|
|
|
using System.Linq.Expressions;
|
|
|
|
|
|
|
|
namespace Core.Specifications
|
|
|
|
{
|
|
|
|
public interface ISpecification<T>
|
|
|
|
{
|
2022-05-11 16:24:26 -07:00
|
|
|
Expression<Func<T, bool>> Criteria { get; }
|
|
|
|
List<Expression<Func<T, object>>> Includes { get; }
|
|
|
|
Expression<Func<T, object>> OrderBy { get; }
|
|
|
|
Expression<Func<T, object>> OrderByDecending { get; }
|
|
|
|
|
|
|
|
int Take {get; }
|
|
|
|
int Skip {get; }
|
|
|
|
bool IsPagingEnabled {get; }
|
2022-05-10 15:45:47 -07:00
|
|
|
}
|
|
|
|
}
|