예제 #1
0
        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);
        }
예제 #2
0
 public async ValueTask <RowSet[]> CallAsync(StoredProcedureRequest procedure)
 => await this._DbConnection.CallAsync(procedure, this._CancellationToken);