public async ValueTask <RowSet[]> CallAsync(StoredProcedureRequest procedure, CancellationToken cancellationToken = default) { await using var dbConnection = this._DbProviderFactory.CreateConnection(this._ConnectionString); await dbConnection.OpenAsync(cancellationToken); var results = await dbConnection.CallAsync(procedure, cancellationToken); await dbConnection.CloseAsync(); return(results); }
public async ValueTask <RowSet[]> CallAsync(StoredProcedureRequest procedure) => await this._DbConnection.CallAsync(procedure, this._CancellationToken);