Table of Contents

Method GetDataTypeNames

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

GetDataTypeNames(IDataRecord)

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

public static string[] GetDataTypeNames(this IDataRecord record)

Parameters

record IDataRecord

The record to get the data type names from.

Returns

string[]

An array of data type names, such as nvarchar for SQL Server.

Exceptions

ArgumentNullException

record is null.