To learn more about the RavenDB profiler's capabilities, you will now create the ASP.NET MVC application RavenDBProfiling
, which implements the profiler. You will implement only the necessary code to enable the profiler to monitor the application which will connect to the World
database (created in the previous chapters) and retrieve documents from the Countries
collection. Then, you will view and analyze the profiler's information report:
Open Visual Studio, create a new ASP.NET MVC 4 Web Application, and name it
RavenDBProfiling
.Use the
NuGet
package manager to add theRavenDB Client MVC
integration package. While it installs the package, it will automatically add theRavenDB Client
package.In the Solution Explorer, select the
Models
folder, right-click on it to add a new class, and name itCountry
(the class definition that we used in the previous chapters).Add the static
IDocumentStore
field and theInitializeRavenProfiler()
method to the...