Custom driver - Multiple databases
I'm writing a custom driver, is there a way to have the same functionality as the "Display in a treeview" one from LINQPad where multiple databases are displayed in the tree view and the connections dropdown list? Especially the part where selecting the server-name.database-name
from the dropdown changes the context of the query?
Comments
This is possible - you'll need to override these properties of DataContextDriver:
Thank you for your response. I did find those while spelunking a bit, but it seems the
GetChildren
method is not called even ifIsParent
returnstrue
.Adding this to the
UniversalStaticDriver
class of the demo project show that onlyIsParent
is called.Right now, this feature is available only with dynamic drivers.