Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public async ValueTask <RowSet> SelectAsync(SelectRequest select)
 => await this._DbConnection.SelectAsync(select, this._CancellationToken);