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
connectionTConnectionAn open connection to run the lookup on.
procedurestringThe procedure name as given to the command.
cancellationTokenCancellationTokenThe 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.