首页 > 代码库 > 链接 DB App.config 解析

链接 DB App.config 解析

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
</startup>
<appSettings>
<add key="ConnectionNo" value="http://www.mamicode.com/001"/>
<add key="TemplatePATH" value="http://www.mamicode.com/Template"/>
</appSettings>
<!-- 数据库连接串 -->
<connectionStrings>
<clear/>
<add name="001" connectionString="Data Source=.;Initial Catalog=DB;Persist Security Info=True;User ID=sa;Pooling=False;MultipleActiveResultSets=False;Encrypt=False;TrustServerCertificate=True;password=123" providerName="System.Data.SqlClient "/>
</connectionStrings>
</configuration>

链接 DB App.config 解析