Database definition - Connection treeview
Hi All
Is there a way to access the database definition that is displayed in the connection treevies?
I've tried using DataContextBase and then reading the Connnection.GetSchema() but that didn't get me very far at all.
Any pointers gratefully recieved.
Cheers
Sevek
Comments
Try
this.Mapping
.Hi Joe.
Been down that path. $$$ signs lit up at first but then I discovered that doing a
this.Mapping.Dump();
and has a look around the object one doesn't find any definition. The MappingSource and ContextType aren't much help either.this.Mapping.GetTables()
See https://docs.microsoft.com/en-us/dotnet/api/system.data.linq.mapping.metamodel?view=netframework-4.8
See also https://forum.linqpad.net/discussion/comment/390
Hi Joe. Awesome, Thanks