如何使用C#win形式的类传递连接字符串EnterpriseLibraryContainer? [英] how to pass connection string EnterpriseLibraryContainer by using class in C# win form?

查看:96
本文介绍了如何使用C#win形式的类传递连接字符串EnterpriseLibraryContainer?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Database oDB = EnterpriseLibraryContainer.Current.GetInstance<Database>("MultipleDBDynamicScriptWithCode.Properties.Settings.mMaster1ConnectionString");



In上面的连接字符串连接在app.config文件中声明的数据库。



但我想要:数据库oDB中的完整连接字符串...不仅仅是名称连接字符串。



提前使用Thanx ....


In above connection string to connect the database which is declare in app.config file.

but i want like : full connection string in Database oDB... not only name of connection string.

Thanx in advance....

推荐答案

查看以下链接



https://entlib.codeplex.com/discussions/401337 [ ^ ]
check below link

https://entlib.codeplex.com/discussions/401337[^]


这篇关于如何使用C#win形式的类传递连接字符串EnterpriseLibraryContainer?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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