OData throws The query specified in the URI is not valid

asp.net-core c# entity-framework-core odata

Accepted Answer

Take away the plus signs (+ ) and enclose the value in single quotes since a string equality check should be performed. The final uri should read:

http://localhost:52973/odata/customers?$filter=Code eq '12069'

Use an encoded uri if you wish one.%20 and for spaces%27 a single quotation

http://localhost:52973/odata/customers?$filter=Code%20eq%20%2712069%27
4
2/21/2019 3:53:09 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow