Skip to content
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

SetFilter on Custom Repository issue #115

Open
Antoshjkee opened this issue Aug 20, 2019 · 1 comment
Open

SetFilter on Custom Repository issue #115

Antoshjkee opened this issue Aug 20, 2019 · 1 comment

Comments

@Antoshjkee
Copy link

When using collectionConfig.SetRepositoryType<FooRepository>(); together with
collectionConfig.SetFilter(x => ...); it does not store lambda expression and it get's lost somewhere and when it gets to this method I always get null on whereClause.
protected override PagedResult<RuleGroup> GetPagedImpl(int pageNumber, int pageSize, Expression<Func<RuleGroup, bool>> whereClause, Expression<Func<RuleGroup, object>> orderBy,SortDirection orderDirection)

I have tried to dig the source code and see what is happening, but could not find the trace of it where it gets lost. I will continue looking for it, but maybe you aware of this already and got a solution.

@darrenferguson
Copy link

I just hit this myself - although not ideal - one can work around it, by looking at the query string directly...

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants