如何获取LINQPad中列出的SQL Express数据库的连接字符串?

时间:2022-04-03 12:10:00

Is there an easy way to get the connection string of a database listed in the connection window of LINQPad (other than using the object explorer of Visual Studio)?

有没有一种简单的方法来获取LINQPad的连接窗口中列出的数据库的连接字符串(除了使用Visual Studio的对象浏览器)?

1 个解决方案

#1


7  

Making sgmoore's comment into an answer:

让sgmoore的评论回答:

try this.Connection.ConnectionString.Dump();

试试this.Connection.ConnectionString.Dump();

#1


7  

Making sgmoore's comment into an answer:

让sgmoore的评论回答:

try this.Connection.ConnectionString.Dump();

试试this.Connection.ConnectionString.Dump();