c# - OData cast binary data before filtering -
so,
i trying use odata's filtering , greater operator on binary field. want field cast int64 before comparison, cant find way to.
the example request have come far :
http://urltocontroller?$select=__version&$orderby=__version &$filter=__version ge cast(binary'00000000000009fd', 'edm.int64')
this throws incompatible types edm.binary , edm.int64 error.
what :
http://urltocontroller?$select=__version&$orderby=__version &$filter=cast(__version,'edm.int64') ge cast(binary'00000000000009fd', 'edm.int64')
but throw error function cast not implemented.
any helps ? tried compare binary field on db if int?