#How do I resolve this C# error?

12 messages · Page 1 of 1 (latest)

stiff fjord
#

Hey!

I am trying to chain together a bunch of filtering/sort on a redis-collection. How can I solve this error?

#

ExecuteSort() is triggered like this:

#

_listings is a RedisCollection<...> with saveState set to false.

quick ember
#

Looks like you are probably including two conflicting namespaces, that's supposed to resolve to Redis.OM.SearchExtensions.OrderByDescending, but it looks like there must be a conflicting definition that you are encountering. You can explicitly invoke SearchExtensions.OrderByDescending passing in the collection and your Lambda and that ought to do it.

stiff fjord
quick ember
#

yes that should work.

stiff fjord
#

Perfect.

stiff fjord
#

And things like

quick ember
#

ugh, unfortunatly we cannot support null checks 😦 and trying to do the dictionary access within the query will not work.

stiff fjord
#

Yeah, moved the dictionary to hard-coded (unfortunately)