DataReaderExtensions.ToInt64 method
Reads and converts the value at the field index to Int64. Returns null if the value is DBNull.
public static long? ToInt64(this IDataReader reader, int index)
| parameter | description |
|---|---|
| reader | The reader (required). |
| index | The field index. |
Return Value
The field value, or null if the value is DBNull.
See Also
- class DataReaderExtensions