-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FeatureRequest: IgnoreQueryFilters #159
Comments
We've been trying hard not to make the package too EF centric. But, we've added |
Agreed. As much as possible it's nice to put them in the EF-specific packages, but I know that's not always possible, either. |
I implemented this by myself. I derive from Specification and use an evaluator. The new specificaton class is a base class from that I can derive my business specifications. It was very easy for me. But I was suprised that the SpecificationEvaluator has no ctor to add my new evaluator to the default ones. So I had to copy the whole list from the default ctor. I think no one would loose the default evaluators. |
Note to implement Regarding your question, the public SpecificationEvaluator()
{
this.evaluators.AddRange(new IEvaluator[]
{
WhereEvaluator.Instance,
SearchEvaluator.Instance,
IncludeEvaluator.Instance,
OrderEvaluator.Instance,
PaginationEvaluator.Instance,
AsNoTrackingEvaluator.Instance,
#if NETSTANDARD2_1
AsSplitQueryEvaluator.Instance,
AsNoTrackingWithIdentityResolutionEvaluator.Instance
#endif
});
}
public SpecificationEvaluator(IEnumerable<IEvaluator> evaluators)
{
this.evaluators.AddRange(evaluators);
} |
Hi
If we have global filters applied in ef core configuration there should be a way to ignore them in some specifications.
The text was updated successfully, but these errors were encountered: