IdeaBlade/Breeze — pull request #19 by dehbmarques (2013-07-10 21:10:59+00:00)
Title: Suggestion - Array parameter (withParameters)

In my breeze controller I have an action like this:
public IQueryable SearchCompanies([FromUri] int[] neighborhoodsId)
{
var query = _contextProvider.Context.Company.AsQueryable();
if (neighborhoodsId.Length > 0)
{
query = query.Where(a => neighborhoodsId.Contains(a.Neighborhood.Id));
}
return query;
}

And in my view model something like this:
entityQuery.from('SearchCompanies').withParameters({ neighborhoodsId: [1,2] });
This query bulid this uri: SearchCompanies?citiesId=1%2C2
But it should build like this: SearchCompanies?citiesId=1&citiesId=2

I've changed this method to work this way, it worked for me and I think that would be nice to share.
If there is already another way to filter a collection or if this modification will be committed, please let me know.

p.s. sorry for my english

Thanks