Skip to content

Instantly share code, notes, and snippets.

@enisn
Created April 16, 2020 19:51
Show Gist options
  • Save enisn/88ca7fccff285c383222354ed3c47114 to your computer and use it in GitHub Desktop.
Save enisn/88ca7fccff285c383222354ed3c47114 to your computer and use it in GitHub Desktop.
Challenge #1 - Solution 2 - IFilter
public interface IFilter
{
Expression BuildExpression(Type entityType, Expression body);
IQueryable<TEntity> ApplyFilterTo<TEntity>(IQueryable<TEntity> query);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment