Best Of
Re: Customizing Dump in a DataContext package
The static ToDump
method applies to scripts and My Extensions - not drivers.
With drivers, you instead override the PreprocessObjectToWrite
method. This is described in the documentation:
https://www.linqpad.net/Extensibility.aspx

Re: linqPad IWebdriver want to connect to Mysql ?
Also, change the Language in the dropdown to 'C# Statements'.
Or else wrap your code in a void Main()
:
void Main() { IWebDriver driver = ... ... }

Re: LinqPad navigation properties populated show in rich text
What is this type? Where it came from? Are you sure it is not delay loaded?
Please provide minimum working example.

Re: linqPad IWebdriver want to connect to Mysql ?
IWebdriver
has no relation to LINQPad. It's part of Selenium.
Since broken collection Mysql
is selected script fails on startup.

Re: linqPad IWebdriver want to connect to Mysql ?
Change connection (at the top right) to none

Re: (Bug?) Exception from Linqpad, running to completion in Visual Studio/Command Prompt
I don't have 'Microsoft.ACE.OLEDB.12.0' on my machine, so I can't test this properly but looking at the files included in Helper.7z you have two copies of System.Diagnostics.PerformanceCounter.dll
and one of them is a lot smaller and the constructor in CounterCreationData is
public CounterCreationData(string counterName, string counterHelp, PerformanceCounterType counterType) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_PerfCounters); }
whereas the other is
public CounterCreationData(string counterName, string counterHelp, PerformanceCounterType counterType) { CounterType = counterType; CounterName = counterName; CounterHelp = counterHelp; }
So the smaller looks like a non-windows version and being used by LinqPad whereas the latter is the windows version.
Not sure of the exact reason by LinqPad picks the wrong dll but I suspect it is related to the shadowing where it attempts to copy all the necessary dlls to a shadow folder and runs from that folder.
I suspect if you delete this non-windows dll from your Helper\bin\Debug\net9.0 folder, then LinqPad will work.
Not sure how you are supposed to tell which is the correct version as the version numbers are the same.

Re: LINQPad for macOS: First public preview!
Sounds like your project has global using
directives or the project file has <ImplicitUsings>enable</ImplicitUsings>
.
Create a LINQPad script with the following content:
global using System; global using System.Linq; global using System.Collections.Generic; global using System.IO; global using System.Net.Http; global using System.Threading; global using System.Threading.Tasks;
and save it to a file such as "implicits.linq". You can add any other imports that your project needs. Note that this script must have the language set to "C# Statements".
Then in your main script, include this script as follows:
#load "implicits"

Re: Closing Separate Results Window / maximizing pane automatically
It would be nice to have some kind of directive, kind of #LINQPad hide_on_run+
, to hide code window when running. I have an Avalonia application for which I don't need to see the code at all.

Re: LINQPad for macOS: First public preview!
So excited to try! No support on Intel Macs? Getting a "You can't open the application LINQPAd 8 beta.app because this application is not supported on this Mac.".
Hardware 2019 MacBook Pro 8-Core Intel Core i9
OS: 15.1.1
Have an M1 can try with later.

Re: Benchmark stuck on "Waiting for first iteration to complete..."
Has to be a C# program rather than C# Statements.
Example.
#load "BenchmarkDotNet" public UserQuery() : base (LINQPad.Util.CurrentCxString) { } void Main() { RunBenchmark(); } [Benchmark] public void Benchmark() { }
This only works because Linqpad creates the class called UserQuery which is derived from my DbContext and that class has a constructor which takes a string.
