lenlenya
3/22/2018 - 9:56 AM

数据库连接配置connectionStrings

数据库连接配置connectionStrings

数据库连接配置connectionStrings

<connectionStrings>
    <add name="mssqlDefaultConnectionString" connectionString="Data Source=172.17.10.23;Initial Catalog=TestDB;Persist Security Info=True;User ID=sa;Password=1" providerName="System.Data.SqlClient" />
    <add name="mysqlDefaultConnectionString" connectionString="Datasource=23.111.111.111;database=TestDB;uid=root;pwd=1;charset=utf8;" providerName="MySql.Data.MySqlClient" />
    <add name="oracleDefaultConnectionString" connectionString="Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=172.17.10.10) (PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=ORCL.ABC.COM)));User Id=tester; Password=1" providerName="Oracle.DataAccess.Client" />
</connectionStrings>