-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
NHibernate 4.x Cookbook - Second Edition
By :
Glimpse is a popular diagnostics and profiling framework, built especially for .NET web applications. In this recipe, we will show you how to use Glimpse and the Glimpse.NHibernate add-on, in order to profile NHibernate requests.
Open an existing ASP.NET web application project that uses NHibernate or complete the Setting up session-per-web request recipe from Chapter 3, Sessions and Transactions.
Install Glimpse for MVC using the NuGet Package Manager Console by executing the following command:
Install-Package Glimpse.MVC5
Install the NHibernate.Glimpse package using the NuGet Package Manager Console by executing the following command:
Install-Package NHibernate.Glimpse
Run the web application.
Navigate to /glimpse.axd.
Click the button labeled Turn Glimpse On.
Navigate to any URL which executes NHibernate queries, such as the /books page in the example application.
Click on the Glimpse logo in the bottom-right corner of the page.
Investigate...