<PackageReference Include="Microsoft.Data.SqlClient" Version="7.1.0-preview2.26190.5" />

Microsoft.Data.SqlClient.Diagnostics.SqlClientTransactionRollbackBefore

public sealed class SqlClientTransactionRollbackBefore : IEnumerable<KeyValuePair<string, object>>, IEnumerable, IReadOnlyCollection<KeyValuePair<string, object>>, IReadOnlyList<KeyValuePair<string, object>>
Contains diagnostic information emitted before a transaction rollback is rolled back.
public const string Name = "Microsoft.Data.SqlClient.WriteTransactionRollbackBefore"

Contains diagnostic information emitted before a transaction rollback is rolled back.

public SqlConnection Connection { get; }

The connection object that the transaction belongs to.

public int Count { get; }

Gets the number of elements in the collection.

The IsolationLevel of the transaction.

public KeyValuePair<string, object> this[int index] { get; }

Gets the element at the specified index in the read-only list.

public string Operation { get; }

The name of the operation.

public Guid OperationId { get; }

A guid value used to correlate before, after and error events.

public long Timestamp { get; }

The timestamp of the event.

public long? TransactionId { get; }

A nullable long uniquely identifying the transaction that the command is enrolled in if it is enrolled in one, or null.

public string TransactionName { get; }

The name of the transaction which is being rolled back.

public IEnumerator<KeyValuePair<string, object>> GetEnumerator()

Returns an enumerator that iterates through the collection.