The ODataRequest object is responsible for converting itself to a url string. During this process we fill a dictionary with parameters. If there is a duplicate parameter (e.g. the caller provided the metadata parameter that we also want to set), an exception is thrown.
~The duplicated parameter in the query-string can be an array. For example: ...?id=42&name=asdf&id=43 needs to be parsed to {"id": [42, 43], "name": "asdf"}~
The
ODataRequest
object is responsible for converting itself to a url string. During this process we fill a dictionary with parameters. If there is a duplicate parameter (e.g. the caller provided themetadata
parameter that we also want to set), an exception is thrown.https://github.com/SenseNet/sn-client-dotnet/blob/1ba422f858823413ff162af4685ed7d7c7ff31c0/src/SenseNet.Client/ODataRequest.cs#L186
Hint: use dictionary indexer instead of Add, but make sure the precedence is correct.