
In your queries, use database.table notation, e.g., (100). The simplest is the drag-and-drop approach: hold down the Ctrl key whileĭragging additional databases from the Schema Explorer to the query editor. I've bought the LINQPad Premium edition and want to write cross-database queries. There are built-in samples in LINQPad - go to the 'Samples' tab and expand 'C# in a Nutshell', Chapter 10.

Linqpad Serial driver#
You can even query across multiple databases, and query tables from linked servers.ĮF Core's strength is that it supports multiple providers, and from LINQPad 6, you can leverage this with theīuilt-in EF Core driver that supports not just SQL Server, but MySQL, Oracle, SQLite and PostgreSQL.Īnd in all versions of LINQPad, you can query Entity Framework models that you defineĬan I query XML data sources as well as SQL tables?Ĭertainly. Table-value functions, multi-factor authentication for SQL Azure, and a full-fidelity SQL log, whose output you can paste LINQPad's LINQ-to-SQL driver has also been developed extensively over many years, and includes support for stored procedures, This reduces the new query lag, which is valuable when using LINQPad for SSMS-style data exploration tasks. LINQ-to-SQL is faster with large schemas, and its cold startup overhead is less than half that of EF or EF Core. Why does LINQPad use LINQ-to-SQL for querying SQL Server? Why not Entity Framework or EF Core? If the database has a case-sensitive collation.) (Bear in mind that SQL Server does treat table and columns names case-sensitively C# and F# are case-sensitive, whereas VB and SQL are case-insensitive. LINQPad's case-sensitivity depends on which language you select in the Languageĭropdown. Why is LINQPad case-sensitive? SQL isn't! (or right-click to edit an existing connection). This off, uncheck the "Capitalize" option when creating the database connection LINQPad capitalizes property names to avoid collisions with C# keywords. Why does LINQPad capitalize column names? Can I switch this off? (If the connection has already been created, right-click it to edit You can switch this of by unchecking the "Pluralize" option Pluralizing child association properties (while keeping parent associations singular) Why does LINQPad pluralize table and child association properties? Can I switch this off? The built-in samples include demos - go to LINQPad Tutorial and Reference > Scratchpad Features > Advanced Features. LINQPad explicitly supports C#'s asynchronous functions, Reactive Extensions and Microsoft DataFlow. Reference such things as text files, XML files, and native DLLs.Ĭan I run multithreaded and asynchronous code? Tip: Any non-assembly file that you reference in LINQPad 6 and later is copied to the query's output folder, so you can also Simply by referencing it: Press F4 and click Add Reference. (LINQPad 6+): My query needs an appsettings.json file. (unless you override it in the dialog above). Anything you put here applies to all queries

The easiest way is to open the Query Properties dialog (F4) and click the app.config tab.Īlternatively, you can create a file called nfig in the same folder as LINQPad.exe.

How can I tell LINQPad to use this for my query? (LINQPad 5): I'm referencing a custom assembly that reads settings from an application configuration file (app.config). (In LINQPad 6 and later, this step is no longer required.) Then, add the followingĪssembly attribute to the project you want LINQPad to access: First (in LINQPad 5) go to Edit | Preferences | Advanced, and enable Allow LINQPad to access internal types of other assemblies.
Linqpad Serial free#
(although in the free edition, you can still execute saved queries that include NuGet references, and restore missing packages).Ĭan I access internal types of assemblies that I reference?Ĭertainly. The NuGet package manager is available only in the Developer and Premium editions This is explained in the samples inside LINQPad - work through the "5-Minute Induction".Ĭan I reference custom assemblies and NuGet packages?

How do I display the results of multi-statement snippets?
