在Machine.config中存储连接字符串 [英] Storing connection string in Machine.config
本文介绍了在Machine.config中存储连接字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
根据客户要求,
我想将数据库连接字符串信息存储到machine.config.并检索它.
谁能告诉我方法,如何实现?
As Per the Client requirement,
I want to store database connection string information to machine.config. and retriving it.
can anybody please show me the way, How to accomplish this ?
推荐答案
阅读: ^ ]
您需要与客户交谈.您更了解设计,因此必须向他解释,他想要的可能不是最好的方法.还有一种更好的方法可以做到这一点.向他解释使用更好的方法而不是糟糕的方法的优点.
Read this: Storing connection strings in machine.config vs storing them in web.config[^]
You need to talk to the client. You know the design better and so must explain it to him that what he wants may not be the best way. And there is a better way to do this. Explain him the advantages of using the better way over the bad way.
这篇关于在Machine.config中存储连接字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文