webconfig中配置各种数据库的连接字符串

mysql连接串:

<add name="ConnectionString" connectionString="Server=localhost;Database=mytest; User=root;Password=;Port=3306;Charset=utf8" />
 
 

<appSettings>

<!--SQL Server-->

<!--<add key="SQLString" value="Database=MyData;Data Source=NICKYAN-PC;User Id=sa;Password=123123;"/>

<add key="DataDAL" value="RedGlovePermission.SQLServerDAL" />-->

<!--My SQL-->

<add name="ConnectionString" connectionString="Server=localhost;Database=mytest; User=root;Password=;Port=3306;Charset=utf8" />

<add key="DataDAL" value="RedGlovePermission.MySqlDAL" />

<!--Oracle-->

<!--<add key="SqlString" value="Data Source=NICKYAN-PC;User Id=PB_DB_USER;Password=123123;Integrated Security=no"/>  

<add key="DataDAL" value="RedGlovePermission.OracleDAL" />-->

<!--OleDB-->

<!--<add key="SQLString" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=RedGlovePermission.Web\DB\MyData.mdb;Persist Security Info=False"/>

<add key="DataDAL" value="RedGlovePermission.OleDBDAL" />-->

<!--在找不到语言版本时则设定为该版本-->

<add key="InitLanguages" value="zh-cn" />

<!--初始化样式-->

<add key="InitStyle" value="default" />

<!--认证状态(From/SSO)-->

<add key="IsLogin" value="SSO" />

</appSettings>

上一篇:css 简单 返回顶部 代码及注释说明


下一篇:Intellij IDEA 14的注册机(Java版)