public async ValueTask <RowSet> SelectAsync(SelectRequest select, CancellationToken cancellationToken = default) { await using var dbConnection = this._DbProviderFactory.CreateConnection(this._ConnectionString); await dbConnection.OpenAsync(cancellationToken); var result = await dbConnection.SelectAsync(select, cancellationToken); await dbConnection.CloseAsync(); return(result); }
public async ValueTask <RowSet> SelectAsync(SelectRequest select) => await this._DbConnection.SelectAsync(select, this._CancellationToken);