コード例 #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);
        }
コード例 #2
0
ファイル: BatchSqlApi.cs プロジェクト: sam987883/TypeCache
 public async ValueTask <RowSet> SelectAsync(SelectRequest select)
 => await this._DbConnection.SelectAsync(select, this._CancellationToken);