<PackageReference Include="Microsoft.Data.SqlClient" Version="7.0.0-preview1.25257.1" />

Microsoft.Data.SqlClient.Diagnostics.SqlClientCommandError

public sealed class SqlClientCommandError : IReadOnlyList<KeyValuePair<string, object>>, IEnumerable<KeyValuePair<string, object>>, IEnumerable, IReadOnlyCollection<KeyValuePair<string, object>>
Contains diagnostic information emitted after a command execution fails with an exception.
namespace Microsoft.Data.SqlClient.Diagnostics { public sealed class SqlClientCommandError : IReadOnlyList<KeyValuePair<string, object>>, IEnumerable<KeyValuePair<string, object>>, IEnumerable, IReadOnlyCollection<KeyValuePair<string, object>> { public const string Name = "Microsoft.Data.SqlClient.WriteCommandError"; public Guid OperationId { get; } public string Operation { get; } public long Timestamp { get; } public Guid? ConnectionId { get; } public long? TransactionId { get; } public SqlCommand Command { get; } public Exception Exception { get; } public int Count { get; } public KeyValuePair<string, object> this[int index] { get; } public IEnumerator<KeyValuePair<string, object>> GetEnumerator(); public SqlClientCommandError(); } }