Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
RavenDB 2.x Beginner's Guide

You're reading from  RavenDB 2.x Beginner's Guide

Product type Book
Published in Sep 2013
Publisher Packt
ISBN-13 9781783283798
Pages 356 pages
Edition 1st Edition
Languages
Author (1):
Khaled Tannir Khaled Tannir
Profile icon Khaled Tannir

Table of Contents (21) Chapters

RavenDB 2.x Beginner's Guide
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Getting Started with RavenDB RavenDB Management Studio RavenDB.NET Client API RavenDB Indexes and Queries Advanced RavenDB Indexes and Queries Advanced RavenDB Document Capabilities RavenDB Administration Deploying RavenDB Scaling-out RavenDB RavenDB Profiling RavenDB HTTP API Putting It All Together Pop Quiz Answers Index

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 class as follows:

  4. Create a new Controller class, select the Empty MVC Controller template, and name it PagedCountryController.

  5. Make sure the PagedCountryController class inherits from RavenBaseController and modify it as follows:

  6. Use the NuGet Package...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}