Пример #1
0
        public MySqlStorageTransaction(MySqlStorageConnection connection)
        {
            var options = connection.Options;

            _prefix = options.TableNamePrefix;

            _dbConnection = new MySqlConnection(options.ConnectionString);
        }
Пример #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);
        }