DbConnectorCommand.QueryFirstOrDefaultAsync<T> method (1 of 2)

Executes the query, converting the first record to the specified type.

public ValueTask<T> QueryFirstOrDefaultAsync<T>(CancellationToken cancellationToken = default)

Remarks

Returns default(T) if no records are returned.

See Also


DbConnectorCommand.QueryFirstOrDefaultAsync<T> method (2 of 2)

Executes the query, converting the first record to the specified type with the specified delegate.

public ValueTask<T> QueryFirstOrDefaultAsync<T>(Func<IDataRecord, T> map, 
    CancellationToken cancellationToken = default)

Remarks

Returns default(T) if no records are returned.

See Also