gpt4 book ai didi

javascript - 克服 BreezeJS 中的 MaxNodeCount > 100 限制

转载 作者:搜寻专家 更新时间:2023-11-01 05:05:47 24 4
gpt4 key购买 nike

出于测试目的,我在表格中的多个列中查询术语“测试”。生成的过滤器 url 如下所示:

$filter=(substringof('test',Column1) eq true)) and (substringof('test',Column2) eq true)) and (substringof('test',Column3) eq true)) ...

查询工作正常,直到查询的列数超过 15。此时我收到以下错误消息:

Query failed: The node count limit of '100' has been exceeded. To increase the limit, set the 'MaxNodeCount' property on QueryableAttribute or ODataValidationSettings.

我通过将以下属性添加到被调用的 api 方法来绕过它:

[Queryable(
AllowedQueryOptions = AllowedQueryOptions.All,
AllowedFunctions = AllowedFunctions.AllFunctions,
MaxNodeCount = 200)]

但这似乎对外国实体来说效果不佳。使用 expand 函数时,它们始终为 null。我检查了生成的过滤器 url,它确实包含必要的 $expand 语法。

还有什么我想念的吗?

最佳答案

用这个属性更新你的 Controller 方法:

[EnableBreezeQuery(MaxNodeCount = 200)]

关于javascript - 克服 BreezeJS 中的 MaxNodeCount > 100 限制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17478809/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com