private void AddEntry <TEntity>(LambdaExpression lambda, FilterUse filterUse) { if (filterUse.IsSet(FilterUse.Entities)) { EntityFilter.Add(typeof(TEntity), new EntityPredicate(lambda)); } if (filterUse.IsSet(FilterUse.Query)) { QueryFilter.Add(typeof(TEntity), new QueryPredicate <TEntity>(lambda)); } }