1

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?

enter image description here

Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48
Maxi Dietz
  • 31
  • 2

2 Answers2

0

The simplest way is to create another service with projection (and without any annotations).

cigien
  • 57,834
  • 11
  • 73
  • 112
Theo Sun
  • 1
  • 2
0

Use cds.persistence.exclude annotation in the service which you want to switch off the annotation for.

Amit kumar
  • 2,169
  • 10
  • 25
  • 36