包括移动应用服务器查询的总数 [英] Including total count on Mobile App server query

查看:109
本文介绍了包括移动应用服务器查询的总数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的桌面控制器中的C#Mobile App服务器上使用Azure搜索。 我知道查询的总数,那么我如何在响应中包含总数(以避免使用Take(0)在客户端上进行另一次调用)? 我的回复目前看起来像
,如下所示:


return filteredData?.Results.Select(x => x.Document).AsQueryable()


解决方案

只是为了澄清,你是否正在利用
Azure移动应用服务?通常,这将过滤所有数据 -
return filteredData ?.Results.Select(x => x.Document).AsQueryable(),你在寻找什么特定的响应数据总数?您能否提供更多有关
的详细信息,以便您更好地理解?


I'm using Azure Search on my C# Mobile App server in my table controller.  I know the total count of the query, so how would I include the total in the response (to avoid doing another call on the client with Take(0))?  My response currently looks like the following:

return filteredData?.Results.Select(x => x.Document).AsQueryable()

解决方案

Just to clarify, are you leveraging Azure Mobile Apps service? Typically, this would filter for all the data - return filteredData?.Results.Select(x => x.Document).AsQueryable(), what specific total in response data are you looking for? Could you please provide more details on your scenario for better understanding?


这篇关于包括移动应用服务器查询的总数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆