Configuring LINQPad for NCache
The following section has been implemented using LINQPad 5.
NCache offers seamless integration of LINQPad, as it requires just adding a reference to the NCache LINQPad provider and the custom objects that you have stored in NCache.
Open up LINQPad and go to File -> New Query or Press Ctrl + N.
On Query menu, click Reference and Properties or press F4 to add reference. Query Properties wizard pops up.
In Additional References tab, click Browse. An Open dialog will appear.
%NCHOME%\integrations\LinqPad\and select Alachisoft.NCache.LinqPadIntegration.dll. Click Open.
%NCHOME%\integrations\LINQToNCache\and select Alachisoft.NCache.Linq.dll. Click Open.
Similarly, add the assemblies for your custom objects.
Select Additional Namespace Imports tab from Query Properties page.
Click Pick from Assemblies **link and choose
Alachisoft.NCache.LinqPadIntegration.dllfrom **Assemblies section. This would populate the Namespaces section on current tab.
Alachisoft.LinqPadIntegrationand click < Add Selected Namespaces.
Perform the same steps for Alachisoft.NCache.Linq.dll and the custom classes added.
It is suggested to click Set as default for new queries button to persist references for all new queries.