Class SqliteDatabaseCleanupDiagnostics

Namespace
XBullet.EasyTesting.EntityFrameworkCore
Assembly
XBullet.EasyTesting.EntityFrameworkCore.dll

Describes a terminal failure while deleting a SQLite scenario database.

public sealed class SqliteDatabaseCleanupDiagnostics
Inheritance
SqliteDatabaseCleanupDiagnostics
Inherited Members

Constructors

SqliteDatabaseCleanupDiagnostics(string?, string?, int, string, string)

Creates cleanup diagnostics.

public SqliteDatabaseCleanupDiagnostics(string? providerName, string? dataSource, int attempts, string exceptionType, string message)

Parameters

providerName string

The EF Core provider name, or null when unavailable.

dataSource string

The SQLite data-source name or path, or null when it cannot be determined safely.

attempts int

The number of deletion attempts made before the terminal failure.

exceptionType string

The full terminal exception type name when available, otherwise its short name.

message string

The terminal exception message, which can be empty.

Fields

ExceptionDataKey

The exception-data key containing cleanup diagnostics.

public const string ExceptionDataKey = "XBullet.EasyTesting.EntityFrameworkCore.SqliteDatabaseCleanupDiagnostics"

Field Value

string

Properties

Attempts

Gets the number of deletion attempts made.

public int Attempts { get; }

Property Value

int

The number of attempts completed before the terminal failure.

DataSource

Gets the SQLite data source when it can be determined safely.

public string? DataSource { get; }

Property Value

string

The SQLite data-source name or path, or null when unavailable. This value can expose filesystem or connection details and should be handled as diagnostic data.

ExceptionType

Gets the terminal exception type.

public string ExceptionType { get; }

Property Value

string

The full exception type name when available, otherwise its short name.

Message

Gets the terminal exception message.

public string Message { get; }

Property Value

string

The exception message, which can be empty and may contain sensitive diagnostic data.

ProviderName

Gets the EF Core database provider.

public string? ProviderName { get; }

Property Value

string

The provider name, or null when it was unavailable.