DbConnector.GetConnectionAsync method

Returns the database connection.

public abstract ValueTask<IDbConnection> GetConnectionAsync(
    CancellationToken cancellationToken = default)
parameter description
cancellationToken The cancellation token.

Return Value

The database connection, or null if the connector is disposed.

Remarks

Allows a lazy-open connector to asynchronously open the connection.

See Also