DatabaseConnection Class

Represents a connection to a database.

Inheritance Hierarchy

Syntax

public class DatabaseConnection : Inedo.Diagnostics.ILogger, System.IDisposable, System.IAsyncDisposable

Constructors

Name Description
DatabaseConnection

Initializes a new instance of the DatabaseConnection class.

Events

Name Description
MessageLogged

Occurs when a message is logged.

Properties

Name Description
ConnectionString

Gets or sets the connection string required to connect to the database.

VerboseLogging

Gets or sets a value indicating whether verbose logging is enabled.

Methods

Name Description
Dispose(bool disposing)

Releases resources used by the instance.

DisposeAsync

Releases resources used by the instance.

ExecuteQueryAsync(string query, System.Threading.CancellationToken cancellationToken)
Log(Inedo.Diagnostics.MessageLevel logLevel, string message)
OnMessageLogged(Inedo.Diagnostics.LogMessageEventArgs e)