Getting a record count with SData


/ Published in: C#
Save to your folder(s)



Copy this code and paste it in your HTML
  1. var service = new SDataService("http://localhost/sdata/slx/dynamic/-/", "admin", "");
  2. var request = new SDataResourceCollectionRequest(service)
  3. {
  4. ResourceKind = "contacts",
  5. Count = 0
  6. };
  7. var entry = request.Read();
  8. var total = entry.GetOpenSearchTotalResults();

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.