appSettings和connectionStrings有什么区别? [英] What is difference between appSettings and connectionStrings ?

查看:95
本文介绍了appSettings和connectionStrings有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

appSettings和connectionStrings有什么区别?

What is difference between appSettings and connectionStrings ?

推荐答案

访问这里



http://www.aspdotnet-suresh.com/2012/10/aspnet-difference-between- appsettings.html [ ^ ]



了解更多...



http://peterkellner.net/2008/02/23/webconfigbestpractice/ [ ^ ]
visit here

http://www.aspdotnet-suresh.com/2012/10/aspnet-difference-between-appsettings.html[^]

for More to understand...

http://peterkellner.net/2008/02/23/webconfigbestpractice/[^]


主要区别在于appsettings部分我们可以存储任何数据字符串值,包括数据库连接字符串,但在connectionStrings部分只存储数据库连接字符串ca. n存储这些只是我们的应用程序连接字符串和新功能(成员资格,个性化和角色管理器)连接字符串。



参考: -

http://peterkellner.net/2008/02/23/webconfigbestpractice/ [ ^ ]
The main difference is in appsettings section we can store any data string values including database connection strings also but in connectionStrings section only database connection strings can store those are our application connection strings and new features (Membership, Personalization and Role Manager) connection strings only.

Refer:-
http://peterkellner.net/2008/02/23/webconfigbestpractice/[^]


这篇关于appSettings和connectionStrings有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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