Beispiel #1
0
        public override IDbConnection GetConnection()
        {
            try
            {
                return(MysqlConnectPoolHelper.CreateConnect(ConfigurationManager.ConnectionStrings["MySQLConnectionString"].ConnectionString));


                // return new MySqlConnection(ConfigurationManager.ConnectionStrings["MySQLConnectionString"].ConnectionString);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Beispiel #2
0
 public override void EnqueueConn(IDbConnection conn)
 {
     MysqlConnectPoolHelper.AddMySqlConnection((MySqlConnection)conn);
 }