Table of Contents

Method GetProcedureParameterNamesAsync

Namespace
Open.Database.Extensions
Assembly
Open.Database.Extensions.Core.dll

GetProcedureParameterNamesAsync(TConnection, string, CancellationToken)

Asynchronously gets the names of the parameters a stored procedure declares. See GetProcedureParameterNames(TConnection, string).

protected virtual ValueTask<ImmutableArray<string>> GetProcedureParameterNamesAsync(TConnection connection, string procedure, CancellationToken cancellationToken)

Parameters

connection TConnection

An open connection to run the lookup on.

procedure string

The procedure name as given to the command.

cancellationToken CancellationToken

The cancellation token of the call: the command's cancellation token, together with the one passed to the terminal (for example ToListAsync(token)) when there is one.

Returns

ValueTask<ImmutableArray<string>>

The names as the provider reports them, or an empty or default array when they are not known.