在Machine.config中存储连接字符串 [英] Storing connection string in Machine.config

查看:98
本文介绍了在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屋!

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