Reputation: 31
i woul'd like to use a sap cap service in an c# application (odata feed service/odata client). This odata client doesn't work with annoations in the $metadata file. How can i switch off all annotations for a specific service? Via server.js? Via service implemantion?
Upvotes: 1
Views: 255
Reputation: 2694
Use cds.persistence.exclude
annotation in the service which you want to switch off the annotation for.
Upvotes: 0
Reputation: 1
The simplest way is to create another service with projection (and without any annotations).
Upvotes: 0