"Referenced queries must have the same connection as the main query." in LINQPad 6
I'm using LINQPad 6.0.28, when both main query and child query using exact *SAME* database, I'm pretty sure these 2 query *IS* using the same database, and everything working fine in LINQPad 5. but I still get this error:
I managed to find this message this from here:
After same investigation, I changed Util.Run into these code, that's my work around:
I managed to find this message this from here:
After same investigation, I changed Util.Run into these code, that's my work around:
public static void Execute(string queryName)
{
queryName.Dump("Executing...");
var currentDir = Path.GetDirectoryName(Util.CurrentQueryPath);
Util.Cmd($@E:\_\LINQPad6\LPRun6.exe "{currentDir}\{queryName}.linq""");
}
Comments
Note that the referenced query have the identical connection - i.e., refer to the same node on the schema explorer.