标签:value config max list 数据库 key nbsp man web
Web.config中的写法
<configuration>
<appSettings>
<add key="DbType" value="1"/>
<add key="DbConnection" value="Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.203)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=cdrtest)));User Id=saipadmin;Password=saipmanager;Pooling=true;Min Pool Size=0;Max Pool Size=100;Connection Timeout=60;Connection Lifetime=0;Persist Security Info=true"/>
</appSettings>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>
string type = System.Configuration.ConfigurationManager.AppSettings["DbType"];
string connect = System.Configuration.ConfigurationManager.AppSettings["DbConnection"];
标签:value config max list 数据库 key nbsp man web
原文地址:https://www.cnblogs.com/AbelAngelo/p/10185145.html