The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.

LINQPad Context Driver

XPO ships with a LINQPad context driver. This topic describes how to install the driver and use it to query XPO persistent classes.

Install the Driver

To install the XPO LINQPad context driver, click Add connection in the main window. Then choose View more drivers... and Browse....

LINQPad_InstallDriver

You will be presented with a dialog window where you need to point LINQPad to a custom context driver. By default, the XPO context driver is installed to the C:\Program Files (x86)\DevExpress 19.1\Components\Tools\Components folder. Navigate to this folder, choose the XPOContextDriver.lpx file and click Open.

LINQPad_OpenLpx

Query XPO Persistent Classes

After you have installed the driver, it will be listed in the Choose Data Context dialog invoked via the Add connection command from the main window. Choose the driver and click Next >.

LINQPad_ChooseXPODriver

Click Browse... to select the assembly containing persistent classes you wish to query.

Note

The DevExpress.Xpo and DevExpress.Data assemblies that were used to compile the persistent classes assembly must be present in the Global Assembly Cache (GAC). You will also need the DevExpress.Xpo.Linq assembly for XPO versions prior to v2011 vol 2. If these assemblies are not available in GAC, you can simply place them next to the persistent classes assembly.

LINQPad_ChooseXPOAssembly

Specify the connection parameters for the database holding the persistent classes data and click OK.

LINQPad_SpecifyConnectionParameters

To check that you have successfully installed the XPO context driver and specified the correct database connection parameters, right-click a persistent class and run a test query.

LINQPad_TestQuery