O'Reilly logo

RavenDB 2.x Beginner's Guide by Khaled Tannir

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – the paging query <Country>() result

To implement the paging query result, you will create a View-Model to handle information about each page to be displayed. Then you will create a specific Controller and View to display the query result.

Note

Optionally, to make pagination elements look better, we will use Twitter Bootstrap, which is a CSS and JavaScript framework that is used within HTML pages and provides advanced functionality to a website. You may ignore steps 6 and 7 if you don't want to implement Twitter Bootstrap.

  1. Open the World application, select the Models folder and create a new folder and name it ViewModels.
  2. Right-click on the ViewModels folder, add a new class and name it PagedCountryList.
  3. Modify the PagedCountryList ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required