Table of Contents

Method FirstOrdinalResults

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

FirstOrdinalResults(IExecuteReader)

Reads the first column from every record and returns the results as a list.. DBNull values are converted to null.

public static IEnumerable<object?> FirstOrdinalResults(this IExecuteReader command)

Parameters

command IExecuteReader

The IExecuteReader to iterate.

Returns

IEnumerable<object>

The list of transformed records.

FirstOrdinalResults<T0>(IExecuteReader)

Reads the first column from every record.. DBNull values are converted to null.

public static IEnumerable<T0> FirstOrdinalResults<T0>(this IExecuteReader command)

Parameters

command IExecuteReader

The IExecuteReader to iterate.

Returns

IEnumerable<T0>

The enumerable of casted values.

Type Parameters

T0