Azure 移动应用 table 带有查询选项的存储错误请求

Azure mobile apps table storage bad request with queryoptions

我有一个移动应用程序 .net 后端,配置了 Microsoft.Azure.Mobile.Server.Storage 和 .Swagger。

当从 xamarin.forms 客户端尝试 GetAll 时,我收到异常 "Bad Request" 和 {[Message, The query specified in the URI is not valid: 'Query option 'Skip' is not allowed .要允许它,请在 EnableQueryAttribute 或 QueryValidationSettings 上设置 'AllowedQueryOptions' 属性。'。]}

即使我设置了 AllowedQueryOptions.Supported,异常仍然存在。

如果在 xamarin.forms 客户端上尝试从 swagger ui 获取 all/single 实体没有问题,因为我无法将 table 与使用 skip 的 pullasync 同步。

有什么想法吗?谢谢

解决方法 this.EntitySyncTable.SupportedOptions = MobileServiceRemoteTableOptions.None;