umbraco-fluidity icon indicating copy to clipboard operation
umbraco-fluidity copied to clipboard

SetFilter on Custom Repository issue

Open Antoshjkee opened this issue 5 years ago • 1 comments

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.

Antoshjkee avatar Aug 20 '19 10:08 Antoshjkee

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

image

darrenferguson avatar Nov 10 '19 14:11 darrenferguson