Ibraheem Nofal
Ibraheem Nofal

Reputation: 537

Microsoft Azure Mobile Services OrderBy function

How can I retrieve the last 10 records from a table using azure mobile services. I tried the following but it's syntactically wrong App.MobileService.GetTable().OrderBy().Take(10).ToListAsync(); I know that I have to use the CreatedAt attribute, but I can't figure out how it's done

Upvotes: 0

Views: 105

Answers (1)

Brij Raj Singh - MSFT
Brij Raj Singh - MSFT

Reputation: 5113

Something like

App.MobileService.GetTable().OrderBy('__createdAt').Take(10).ToListAsync();

Upvotes: 1

Related Questions