任何人都可以帮助存储连接设置 [英] Can anyone help to store connection settings
本文介绍了任何人都可以帮助存储连接设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好
我有一个表格,我把登录信息放在数据库中,即服务器,数据库,用户和密码
我不想写任何时候的设置。我想以某种方式存储,以便下次从存储位置读取应用程序。
请给我一个样本链接。
在此先感谢
Hi guys
I have a form where I put the login information in the database, ie server, database, user, and password
I do not want to write any time the settings. I want to stored somehow so next time to read the application from where it is stored.
Please give me a link with samples.
Thanks in advance
推荐答案
您可以将锥形字符串存储在App.config文件中。
如何从c#中的App.Config获取连接字符串 [ ^ ]应该可以帮助你开始。
You can store the conecction string in the App.config file.
How to get Connection String from App.Config in c#[^] should help you get started.
这篇关于任何人都可以帮助存储连接设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文