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

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -