Azure Mobile Service Paging Limitation

Deadly 提交于 2019-12-06 15:03:19
phillipv

Against the .NET backend there is a server imposed limit of 50 that works a little differently from what the docs say (those apply to the Node.js backend)

The .NET backend returns a default limit 50 records at a time. To override that you need to add a Queryable(MaxTop) to your getAll function in your backend code like so:

Original Answer

[Queryable(MaxTop = 1000)]
public IQueryable<Place> GetAll() 

Update 1: 6/5/2018

The original answer is now marked obsolete, use the following code instead:

[EnableQuery(MaxTop = 1000)]
public IQueryable<Place> GetAll() 

--

This will now let you get up to X records at a time.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!