コード例 #1
0
ファイル: DbConnProvider.cs プロジェクト: Kevin9567/SCMT
        public static string GetDefaultMysqlConnString()
        {
            string connstr;

            //connstr = DbConnMysql.GetConnectString("localhost", "root", "123456", "cdl");
            connstr = DbConnMysql.GetConnectString("localhost", "root", "", "cdl");
            //connstr = DbConnMysql.GetConnectString("192.168.0.254", "Test", "123456", "cdl");
            //connstr = DbConnMysql.GetConnectString("192.168.0.188", "remote", "123456", "cdl");
            return(connstr);
        }
コード例 #2
0
ファイル: DbConnMysql.cs プロジェクト: Kevin9567/SCMT
        public override DbconnBase Clone()
        {
            try
            {
                if (m_MySqlConnection != null)
                {
                    DbConnMysql conn = new DbConnMysql();
                    conn.m_MySqlConnection = this.m_MySqlConnection.Clone();
                    return(conn);
                }
            }
            catch (Exception exp)
            {
                MyLog.Log("Clone:Exception:" + exp.Message);
                Close();
                //throw;
            }

            return(null);
        }