Table of Contents

Method DataTypeNames

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

DataTypeNames(IDataRecord)

Lazily enumerates the provider's data type name of every column of the current result set, in ordinal order.

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

Parameters

record IDataRecord

The record to get the data type names from.

Returns

IEnumerable<string>

An enumerable of data type names, such as nvarchar for SQL Server. The names are read from the record as the enumerable is enumerated.

Exceptions

ArgumentNullException

record is null.