ZEXSM / OData.QueryBuilder

OData.QueryBuilder - library for creating complex OData queries (OData version 4.01) based on data models with linq syntax.
MIT License
75 stars 31 forks source link

Null objects are not converted to null literal, in error #25

Closed kingchad1989 closed 4 years ago

kingchad1989 commented 4 years ago

http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part2-url-conventions.html#_Toc31361030

When using this library null values are not properly converted to null breaking the ability to do a valid null query such as "x eq null". Currently the conversion of an object to a string returns default instead of the null literal, and this default value is used for flow control in other parts of the library making the fix not so straightforward.

ZEXSM commented 4 years ago

Hi. Give me an example so I can reproduce it

kingchad1989 commented 4 years ago

Hello I've pushed an example to https://github.com/kingchad1989/OdataQueryBuilderNullLiteralDefectReproduction