simple-odata-client / Simple.OData.Client

MIT License
331 stars 197 forks source link

POST url with query string parameter #877

Open neonleo opened 2 years ago

neonleo commented 2 years ago

I am working on SAP HANA, a upsert function have to POST url with parameter like POST https://my356688-api.s4hana.ondemand.com/sap/opu/odata/sap/YY1_HCI_ID_ID_ORIGIN_CDS/YY1_HCI_ID_ID_ORIGINSap_upsert?IDOrigin='EXTERNAL'&ContactID='1'&Field1='Max'&Field2='Mustermann' Reference link - SAP Blog

So how do I work on this? Had try many method on Simple.OData.Client and seem it not allow the uri with query string.

hosney commented 2 years ago

QueryOptions together with InsertEntryAsync is supposed to work but does not seem to. QueryOptions together with UpdateEntryAsync appears to work.