Skip to content

Commit

Permalink
Fix for odata filters
Browse files Browse the repository at this point in the history
  • Loading branch information
solankisamir committed Aug 8, 2018
1 parent 502fd98 commit 82b06f5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ public IList<PsApiManagementApi> ApiByName(PsApiManagementContext context, strin
context.ServiceName,
new Rest.Azure.OData.ODataQuery<ApiContract>
{
Filter = string.Format("contains('{0}',properties/displayName)", name)
Filter = string.Format("properties/displayName eq '{0}'", name)
}),
nextLink => Client.Api.ListByServiceNext(nextLink));

Expand Down Expand Up @@ -1269,7 +1269,7 @@ public IList<PsApiManagementProduct> ProductList (PsApiManagementContext context
var query = new Rest.Azure.OData.ODataQuery<ProductContract>();
if (!string.IsNullOrWhiteSpace(title))
{
query.Filter = string.Format("contains('{0}',properties/displayName)", title);
query.Filter = string.Format("properties/displayName eq '{0}'", title);
}

var results = ListPagedAndMap<PsApiManagementProduct, ProductContract>(
Expand Down

0 comments on commit 82b06f5

Please sign in to comment.