程序代码
<connectionStrings configSource="connectionStrings.config" />
上面红色部分为自定义的config文件,下面为红色连接字符串所配置的数据库链接
程序代码
<connectionStrings>
<add name="SiteSqlServer" connectionString="server=(local);uid=;pwd=;Trusted_Connection=yes;database=banyServer" />
</connectionStrings>
<add name="SiteSqlServer" connectionString="server=(local);uid=;pwd=;Trusted_Connection=yes;database=banyServer" />
</connectionStrings>