asp.net web api - how to cast Edm.Guid to Edm.String in odata -
how cast guid string in odata, have tried $filter=(startswith(cast(customerid, 'edm.string'),'1'))
throws exception unknown function 'cast'.
to perform cast, type shouldn't in quotes. should be:
$filter=startswith(cast(customerid, edm.string),'1')
(i removed brackets)
Comments
Post a Comment