1- LINQPadDriver
2- =============
3- The Official LLBLGen Pro LINQPad driver. This repository is the continuation of the Codeplex repository at
1+ LLBLGen Pro LINQPad Driver
2+ ===========================
3+ The Official [ LLBLGen Pro] ( http://www.llblgen.com ) LINQPad driver. This repository is the continuation of the Codeplex repository at
44https://llblgenlinqpad.codeplex.com/ . For the sourcecode of the Linqpad driver for LLBLGen Pro v4.1 or earlier
55please visit the codeplex repository.
66
7- How to compile the sourcecode
8- -----------------------------------
7+ ###How to compile the sourcecode
98To compile the sourcecode, make sure you place the files mentioned in \Externals\FilesToPlaceHere.txt into
109the folder \Externals before compiling. It can be DevDeploy(4).bat fails after compilation. Adjust the paths
1110in those bat files or remove the post-build event. If you copied LINQPad.exe v4.40 or higher in the Externals
1211folder, you have to change the target framework to .NET 4 for the driver project to compile the code.
1312
14- Requirements to compile the code:
15- -----------------------------------
13+ ###Requirements to compile the code:
1614.NET 3.5 SDK or higher. Recommented: VS.NET 2010, 2012 or 2013 (preferred).
1715
18- How to distribute the driver
19- ------------------------------------
16+ ###How to distribute the driver
2017To distribute the driver, zip the dll and header.xml into a zip file and rename the extension to .lpx.
2118
22- Executing SQL
23- ------------------
19+ ###Executing SQL
2420The driver isn't designed to be used to execute SQL against a database, though it will work if the following
2521is true:
2622- You specify a connection string in the connection dialog
2723- In the connection string specified you connect to a SQL Server service.
2824
29- Executing QuerySpec or Low-level API queries
30- ----------------------------------------------
25+ ###Executing QuerySpec or Low-level API queries
3126Set the 'language' combo box in the query pane in LINQpad to 'C# Statements' or 'VB.NET statements'.
3227Specify the query as-is. To see results, use the Dump(); extension method by appending it to the
3328results.
3429
3530For Adapter, obtain the adapter from the property 'AdapterToUse'. See the example below:
3631
32+ ``` C#
3733// Queryspec:
3834var qf = new QueryFactory ();
3935var results = this .AdapterToUse .FetchQuery (qf .Customer );
@@ -43,3 +39,4 @@ results.Dump();
4339var managers = new EntityCollection <ManagerEntity >();
4440this .AdapterToUse .FetchEntityCollection (managers , null );
4541managers .Dump ();
42+ ```
0 commit comments