Glimpse plugin for OpenAccess ORM


Glimpse is a client-side debugger implemented in JavaScript which shows execution timings, server configuration, request data and more, all in browser, with no changes to your application code.

OpenAccess ORM and Glimpse

Once the Glimpse is installed and enabled it is very easy to start using OpenAccess ORM with it. You need to install the OpenAccess ORM plugin for Glimpse:

Install-package OpenAccess.Glimpse

We will register it in the Global.asax.cs file using the following code snippet:

The last step that needs to be done is to setup the logging for your OpenAccess ORM domain model. Helpful information on this topic can be found here.

Now you could run your application a have a look at the information logged in the OpenAccess ORM tab.

Telerik DataAccess Tab in Glimpse
Telerik DataAccess Tab in Glimpse

Additional information regarding the OpenAccess commands execution can be found under the Timeline tab.

Telerik DataAccess Timeline in Glimpse
Telerik DataAccess Timeline in Glimpse

The complete demo application can be found here.

  • brzozow


    Can I use this plugin with Sitefinity?
    I know that Sitefinity is using OpenAccess. I would like to trace OpenAccess but I have no idea how to configure OpenAccess logging in Sitefinity.


  • You could use the follow code snippet to configure the ORM backend configuration settings inside Sitefinity:

    void Application_Start(object sender, EventArgs e)
    // Code that runs on application startup

    TraceAdapter.Instance.Listeners.Add(new OAGlimpseTraceListener());

    Telerik.Sitefinity.Data.OA.OpenAccessConnection.BackendConfigurationInit += new Telerik.Sitefinity.Data.OA.OpenAccessConnection.BackendConfigurationInitializer(OpenAccessConnection_BackendConfigurationInit);

    void OpenAccessConnection_BackendConfigurationInit(Telerik.Sitefinity.Data.OA.OpenAccessConnection connection, Telerik.OpenAccess.BackendConfiguration configuration)
    configuration.Logging.LogEvents = LoggingLevel.All;