BuildMaster SDK Reference
Version:

DatabaseConnection Class

Represents a connection to a database.

Inheritance Hierarchy

  • object
    • Inedo.BuildMaster.Extensibility.DatabaseConnections.DatabaseConnection

Syntax

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

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

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.