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 – querying a dynamic index


We will query the World database and retrieve all Countries for which the Area field is greater than or equal to 1000000. Before creating this query, you will import the Countries.csv file into the World database. After that, you will visualize how RavenDB will perform this task and you will look at the RavenDB logs in the prompt window.

  1. In Management Studio, import the Countries.csv file into the World database.

  2. Create a new Visual Studio project, name it RavenDB_Ch04.

  3. Add a new class, name it City and complete it as follows:

  4. Add a new class named Country and make it look as follows:

  5. Add the RavenDB DocumentStore initialization to the Main() method using the following code snippet:

    Note

    The World database has been created in Chapter 2, RavenDB Management Studio.

  6. Add this query to the Main() method in the Program class using the following code snippet:

  7. Save all the files and build the solution.

  8. Open the RavenDB installation folder and launch RavenDB server...

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}