Search code examples
breezebreeze-sharp

Breezejs iterates query with $top twice


Breeze v1.5.4 + webapi2

When I call my method,

IQueryable<InvestObjectInfo> InvestObjectInfos(....)

like this:

/DataApi/InvestObjectInfos?$orderby=TreeNode desc,Id&$top=20&treeNodeIds[]=1204&notChanged=false&isOrder=-1&searchString=

I always get 2 queries in sql trace, first w/o top and the second one with TOP specified.

What can be wrong here?


Solution

  • Actually, updating to 1.5.5 version has resolved the problem. Thank you @SteveSchmitt