dbConnection数据库连接字符串 SQL server,MySql,Sqlite

KnifeZ 8/7/2020, 11:07:47 AM 88

# Sql Server

  <connectionStrings>
    <add name="DefaultConn" connectionString="Data Source=.;Initial Catalog=test_db;User ID=sa;Password=sa" providerName="System.Data.SqlClient" />
  </connectionStrings>
0
1
2

# Sqlite

    <add key="SystemConnStr" value="Data Source=|DataDirectory|\OctansLite.db" />
0

# My Sql

  <connectionStrings>
    <add name="DefaultConn" connectionString="server=.;database=test_db;uid=sa;pwd=sa" providerName="System.Data.MySqlClient" />
  </connectionStrings>
0
1
2

#Tags

数据库

热门文章