How can I get the connection string for an SQL Express database listed in LINQPad?

跟風遠走 提交于 2019-12-04 04:21:11
Jay Walker

Making sgmoore's comment into an answer:

try this.Connection.ConnectionString.Dump();

In LinqPad 5 if your Language dropdown is set to C# Program and you have a database selected in the Connection dropdown, then you can get your string using

string c = LINQPad.Util.CurrentDataContext.Connection.ConnectionString;
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!