Referenced Library Not Having LINQ-to-SQL Queries Display in Resulting SQL Tab
I have two assemblies (plugins) for LINQPad. One contains the database entities (EntityFrameworkCore) and the other is a very large library of various things in which some query the database view the entities in the other assembly. The data context used by the 2nd library uses LINQPad's Util.CurrentDataContext to get the instance of the data context (which is a connection in LINQPad I created via the "Use a typed data context from your own assembly" and the driver "Entity Framework Core (3.x -> 7.x)".
When I run a LINQPad script that calls a method in the 2nd assembly and that method queries the data from Util.CurrentDataContext (cast to my custom context in the 1st assembly) all is well and it works like a charm!
However, one thing it's lacking is the generated SQL does not get displayed in the result window's SQL output panel. I know I can manually write to that panel from the 2nd assembly, but I'm wondering (i.e., hoping) that there is some setting or some other way to have all SQL generated by the 2nd assembly automatically display in that panel?
Yes, the above is clear as mud. Sorry!