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
recordIDataRecordThe record to get the data type names from.
Returns
- IEnumerable<string>
An enumerable of data type names, such as
nvarcharfor SQL Server. The names are read from the record as the enumerable is enumerated.
Exceptions
- ArgumentNullException
recordis null.