We are working on application that will use Odata to query page metadata and with metadata we need some page information also so we are using following syntax:
var metas = cds.CustomMetas.Expand("Page").ToList();
the above query returns the error:
The property 'ComponentPresentation' does not exist on type 'odataService.CustomMeta'. Make sure to only use property names that are defined by the type.
Also, the odata query that is formed with above code, if I run that in browser it works without any issues; it is only when I perform the query through code that is when I am getting the error.
Can you please suggest what am I missing?