admin管理员组文章数量:1289497
For testing purposes I'm querying the term 'test' within a table on several columns. The filter url generated looks like this:
$filter=(substringof('test',Column1) eq true)) and (substringof('test',Column2) eq true)) and (substringof('test',Column3) eq true)) ...
The query works fine until the number of columns queried exceeds 15. At this point I get the following error message:
Query failed: The node count limit of '100' has been exceeded. To increase the limit, set the 'MaxNodeCount' property on QueryableAttribute or ODataValidationSettings.
I got around it by adding the following attribute to the api method being called:
[Queryable(
AllowedQueryOptions = AllowedQueryOptions.All,
AllowedFunctions = AllowedFunctions.AllFunctions,
MaxNodeCount = 200)]
But this does not seem to play well with foreign entities. They are always null when using the expand function. I checked the resulting filter url and it does include the necessary $expand syntax.
Is there anything else I'm missing?
For testing purposes I'm querying the term 'test' within a table on several columns. The filter url generated looks like this:
$filter=(substringof('test',Column1) eq true)) and (substringof('test',Column2) eq true)) and (substringof('test',Column3) eq true)) ...
The query works fine until the number of columns queried exceeds 15. At this point I get the following error message:
Query failed: The node count limit of '100' has been exceeded. To increase the limit, set the 'MaxNodeCount' property on QueryableAttribute or ODataValidationSettings.
I got around it by adding the following attribute to the api method being called:
[Queryable(
AllowedQueryOptions = AllowedQueryOptions.All,
AllowedFunctions = AllowedFunctions.AllFunctions,
MaxNodeCount = 200)]
But this does not seem to play well with foreign entities. They are always null when using the expand function. I checked the resulting filter url and it does include the necessary $expand syntax.
Is there anything else I'm missing?
Share Improve this question asked Jul 4, 2013 at 22:28 ZiadZiad 1,0362 gold badges21 silver badges31 bronze badges2 Answers
Reset to default 9update your controller method with this attribute:
[EnableBreezeQuery( MaxNodeCount = 200)]
Are you sure $expand works when there is no MaxNodeCount set?
If you use WebAPI, $expand won't do anything for you, you will have response from server like:
SelectedSubItem=null
Instead, try going into your model and instead of returning
return Context.MyClass;
do this:
return Context.MyClass.Include("SelectedSubItem");
本文标签: javascriptOvercoming MaxNodeCount gt 100 limit in BreezeJSStack Overflow
版权声明:本文标题:javascript - Overcoming MaxNodeCount > 100 limit in BreezeJS - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741457771a2379854.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论