包括移动应用服务器查询的总数 [英] Including total count on Mobile App server query
问题描述
我在我的桌面控制器中的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屋!