如何获取LINQPad中列出的SQL Express数据库的连接字符串? [英] How can I get the connection string for an SQL Express database listed in LINQPad?

查看:204
本文介绍了如何获取LINQPad中列出的SQL Express数据库的连接字符串?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个简单的方法来获取在LINQPad的连接窗口(而不是使用Visual Studio的对象资源管理器)中列出的数据库的连接字符串?

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)?

推荐答案

sgmoore 注释成一个答案:

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

这篇关于如何获取LINQPad中列出的SQL Express数据库的连接字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆