ExtensionMethodsGetFieldNamePerOrdinal Method |
Gets the field name per ordinal. It returns an array with on index i the name of the column i. Ordinals are 1 based, but columns are 0 based in our
system, so the field of the first column is considered to be on position 0.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.2.0.0 (5.2.17.0403)
Syntax public static string[] GetFieldNamePerOrdinal(
this IDataReader reader
)
<ExtensionAttribute>
Public Shared Function GetFieldNamePerOrdinal (
reader As IDataReader
) As String()
Parameters
- reader
- Type: System.DataIDataReader
The reader.
Return Value
Type:
StringUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IDataReader. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also