Represents a connection to a database.
Name | Description | |
---|---|---|
DatabaseConnection |
Initializes a new instance of the DatabaseConnection class. |
Name | Description | |
---|---|---|
MessageLogged |
Occurs when a message is logged. |
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. |
Name | Description | |
---|---|---|
Dispose |
Releases resources used by the instance. |
|
Dispose(bool disposing) |
Releases resources used by the instance. |
|
ExecuteQueryAsync(string query, System.Threading.CancellationToken cancellationToken) |
Runs the specified query against the database. |
|
Log(Inedo.Diagnostics.MessageLevel logLevel, string message) |
Writes the message to the log. |
|
OnMessageLogged(Inedo.Diagnostics.LogMessageEventArgs e) |
Raises the MessageLogged event. |