コード例 #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
ファイル: BatchSqlApi.cs プロジェクト: sam987883/TypeCache
 public async ValueTask <RowSet[]> CallAsync(StoredProcedureRequest procedure)
 => await this._DbConnection.CallAsync(procedure, this._CancellationToken);