DataReaderExtensions.ToString method
namespace: Serenity.Data assembly: Serenity.Net.Data
Reads and converts value at field index to String. Returns DbNull as null.
public static string ToString(this IDataReader reader, int index)
parameter | description |
---|---|
reader | Reader (required). |
index | Index. |
Return Value
Field value or null if value is DbNull.
See Also
- class DataReaderExtensions