Esempio n. 1
0
        public MySqlStorageTransaction(MySqlStorageConnection connection)
        {
            var options = connection.Options;

            _prefix = options.TableNamePrefix;

            _dbConnection = new MySqlConnection(options.ConnectionString);
        }
Esempio n. 2
0
        public MySqlStorageTransaction(MySqlStorageConnection connection)
        {
            var options = connection.Options;

            _prefix = options.TableNamePrefix;

            _dbConnection = new MySqlConnection(options.ConnectionString);
            _dbConnection.Open();
            _dbTransaction = _dbConnection.BeginTransaction(IsolationLevel.ReadCommitted);
        }