Skip to content
Extensions to the Sitecore LINQPad Driver to support working with Sitecore Commerce data
PowerShell C# Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Sitecore Commerce LINQPad

The Sitecore LINQPad Driver from Adam Conn makes it really easy to use LINQPad to query against Sitecore. The goal of Sitecore Commerce LINQPad is to add some extensions to this driver to make sure Sitecore Commerce data works as expected.


CRUD on Commerce Server Items

Without extension With extension
Fail Success

On a regular Sitecore Commerce Server installation all of the Commerce Server sub system contexts are created by HTTP modules. When you run queries from LINQPad the HTTP modules are never run so all of the Commerce Server contexts remain null and nothing works. The CommerceServerConfigReader class fixes this by updating the Sitecore configuration with a custom implementation of ICommerceServerContextManager which creates the Commerce Server sub system contexts statically so that everything will work when calls are made out side of the web.



Sitecore.Commerce.LINQPad.dll is distributed via a NuGet package or a Sitecore package which you can get from the Releases tab or the Sitecore Marketplace


If you choose the NuGet package route then you can install it via Sitecore Rocks, see the links below if you are unsure how to do this. If you choose the Sitecore package route then you can just use the regular Sitecore Install Wizard on the site you want to target with LINQPad.

  1. Setup a connection with the Sitecore LINQPad Driver Step 1
  2. Right click on the connection and then click Properties Step 2
  3. Click on the Advanced tab, then click on the Browse link to the right of the App.config reader label Step 3
  4. Browse and select the Sitecore.Commerce.LINQPad.dll from your site, select the CommerceServerConfigReader class, then click OK Step 4
  5. Make sure the App.config text box is populated with the class, then click OK Step 5

Useful Links

Sitecore LINQPad Driver from Adam Conn

Installing and Using LINQPad Driver for Sitecore


[Create and Deploy Sitecore Modules with NuGet] (

You can’t perform that action at this time.