Returns the database connection.
public abstract ValueTask<IDbConnection> GetConnectionAsync(
CancellationToken cancellationToken = default)
parameter | description |
---|---|
cancellationToken | The cancellation token. |
The database connection, or null if the connector is disposed.
Allows a lazy-open connector to asynchronously open the connection.