Skip to content

Instantly share code, notes, and snippets.

@Rudyzio
Created October 10, 2019 21:23
Show Gist options
  • Save Rudyzio/c8e9520dd9d9b69893546375383bbacd to your computer and use it in GitHub Desktop.
Save Rudyzio/c8e9520dd9d9b69893546375383bbacd to your computer and use it in GitHub Desktop.
public interface ISpecification<T>
{
Expression<Func<T, bool>> Criteria { get; }
List<Expression<Func<T, object>>> Includes { get; }
List<string> IncludeStrings { get; }
Expression<Func<T, object>> OrderBy { get; }
Expression<Func<T, object>> OrderByDescending { get; }
Expression<Func<T, object>> GroupBy { get; }
int Take { get; }
int Skip { get; }
bool IsPagingEnabled { get; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment