LINQPad (v8) doesn't find the internal DbContext class
I have set the <InternalsVisibleTo Include="LINQPadQuery" />
value in the .csproj file which works fine for my other assemblies to be able to acces the DbContext class, but when I try to load the assembly in LINQPad (v8), it cannot find any DbContext classes and show an empty list.
Do I have to explicitly include the [InternalsVisibleTo("LINQPadQuery")]
for it to work, or is is some other namespace for the EF Core driver that loads the DbContext from the dll assembly?
Comments
I've fixed this in the latest beta:
https://www.linqpad.net/linqpad8.aspx#beta
Note that the fix is not 100% reliable; it can fail due to assembly resolution issues. Inspecting types and resolving their base classes is inherently unreliable because there's no guarantee that the type hierarchy for every class in an arbitrary assembly is externally resolvable. In any case, you can still manually enter the type name (as you can now) - it's only the list picker that's affected.
Great! Thank you @JoeAlbahari I will give it a try soon.