I have a web services API (with an OData endpoint called piperuns, using ODataController) that takes an optional query string (called projectNumber) like:
http://localhost:59636/piperuns?projectNumber=1
I have a client based on Simple.OData.Client, and I cannot figure out how to pass this optional query string...I am using the dynamic syntax and can get the piperuns (without the query parameter) using the syntax below:
ODataFeedAnnotations annotations = new ODataFeedAnnotations();
ODataClient client = new ODataClient("http://localhost:59636/");
var x = ODataDynamic.Expression;
IEnumerable<dynamic> pipeRunsNext = await(Task<IEnumerable<Simple.OData.Client.ODataEntry>>)client
.For(x.piperuns)
.FindEntriesAsync(annotations.NextPageLink, annotations);
But I have not found any information on how to include my optional query string parameter, if desired?
Thanks!