mattbrailsford / umbraco-fluidity

A fluent CRUD user interface generator for Umbraco
https://our.umbraco.org/projects/backoffice-extensions/fluidity/
Apache License 2.0
48 stars 40 forks source link

SetFilter on Custom Repository issue #115

Open Antoshjkee opened 5 years ago

Antoshjkee commented 5 years ago

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 commented 5 years ago

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

image