private void buildConnection() { if (_connection == null) { _connection = new TransactionState(_factory, _mode, _isolationLevel, _commandTimeout, _ownsConnection); _connection.Open(); } }
private void buildConnection() { if (_connection == null) { _connection = _factory is null ? new TransactionState(_mode, _isolationLevel, _commandTimeout, _externalConnection, _ownsConnection) : new TransactionState(_factory, _mode, _isolationLevel, _commandTimeout, _ownsConnection); _retryPolicy.Execute(() => _connection.Open()); } }