How to apply MaxExpansionDepth globally or to an entire controller in breeze

后端 未结 2 553
逝去的感伤
逝去的感伤 2021-01-28 06:18

I found this SO answer: MaxExpansionDepth with latest webapi and breeze

But this only applies to a single method on the controller. Applying the BreezeQueryable attribut

相关标签:
2条回答
  • 2021-01-28 07:03

    I submitted a pull request to add the MaxExpansionDepth to a controller rather than on each methods. https://github.com/IdeaBlade/Breeze/pull/35

    0 讨论(0)
  • 2021-01-28 07:10

    We can look into offering the Web API Queryable attributes on the BreezeControllerAttribute and applying your settings as the default values when we qualify the controller query methods. Please vote for this on "User Voice"

    Meanwhile, you know it is open source. You can implement your own version of BreezeControllerAttribute.

    0 讨论(0)
提交回复
热议问题