Table of Contents

Method ColumnNames

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

ColumnNames(IDataRecord)

Lazily enumerates the column names of the current result set in ordinal order.

public static IEnumerable<string> ColumnNames(this IDataRecord record)

Parameters

record IDataRecord

The record to get the column names from.

Returns

IEnumerable<string>

An enumerable of column names. The names are read from the record as the enumerable is enumerated.

Exceptions

ArgumentNullException

record is null.

See Also