Java教程

SqlSugar各数据库连接串

本文主要是介绍SqlSugar各数据库连接串,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
public class SqlConnHelp
    {
        /// <summary>
        /// SqlServer连接串
        /// </summary>
        public static readonly string SqlServerConStr = "Data Source=localhost;Initial Catalog=CS_BS_WEBAPI_TEST;User Id=sa;Password=123!@;";

        /// <summary>
        /// Oracle连接串
        /// </summary>
        public static readonly string OracleConStr = "Data Source=LAPTOP-BK8FAGIA:1521/orcl;User ID=hsp;Password=admin";

        /// <summary>
        /// Mysql连接串
        /// </summary>
        public static readonly string MySqlConStr = "database='bozhu';Data Source = '127.0.0.1'; User Id = 'root'; pwd='root';charset='utf8';pooling=true";

    }

 

这篇关于SqlSugar各数据库连接串的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!