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

Popular posts from this blog

Upgrade php version of xampp not success -

amazon web services - S3 and apache mod_proxy with basic authentication -

powershell - This solution contains one or more assemblies targeted for the global assembly cache -