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.
In Management Studio, import the
Countries.csv
file into theWorld
database.Create a new Visual Studio project, name it
RavenDB_Ch04
.Add a new class, name it
City
and complete it as follows:Add a new class named
Country
and make it look as follows:Add the RavenDB
DocumentStore
initialization to theMain()
method using the following code snippet:Note
The
World
database has been created in Chapter 2, RavenDB Management Studio.Add this query to the
Main()
method in theProgram
class using the following code snippet:Open the RavenDB installation folder and launch RavenDB server...