Skip to content
This repository has been archived by the owner on Aug 2, 2019. It is now read-only.

"Not Contains" clause not works #27

Closed
rodrigosendin opened this issue Mar 15, 2017 · 2 comments
Closed

"Not Contains" clause not works #27

rodrigosendin opened this issue Mar 15, 2017 · 2 comments

Comments

@rodrigosendin
Copy link

Hello,

I have a case where I need to filter data with a "not contains" clause. Someting like this:
$filter (substringof('outro',Nome) eq false)

But this clause throw a query not supported exception on NHibernate.OData.
Is there another way to do that? Or any plan to support this clause?

Thanks

@dsigitov
Copy link
Contributor

Hello. You can use the following query instead: $filter=not substringof('outro',Nome)

@rodrigosendin
Copy link
Author

Thanks! Works just fine!

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

No branches or pull requests

2 participants