Skip to content

Commit

Permalink
Merge pull request #40 from dynamicweb/mss/20258
Browse files Browse the repository at this point in the history
Added logic so when having the provider as source and use $filter on …
  • Loading branch information
MatthiasSort authored Aug 14, 2024
2 parents 63effde + 4577cfc commit 021f259
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Version>10.6.0</Version>
<Version>10.6.1</Version>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<Title>OData Provider</Title>
<Description>The Odata Provider lets you fetch and map data from or to any OData endpoint.</Description>
Expand Down
4 changes: 4 additions & 0 deletions src/ODataSourceReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ internal void CallEndpoing(IDictionary<string, string> headers, bool readFromLas
{
parameters.Add(parameter.Key, parameter.Value);
}
else if (parameter.Key.Equals("$filter", StringComparison.OrdinalIgnoreCase) && !ODataProvider.EndpointIsLoadAllEntities(_endpoint.Url))
{
parameters[parameter.Key] = $"{parameters[parameter.Key]} and {parameter.Value}";
}
}
}

Expand Down

0 comments on commit 021f259

Please sign in to comment.