Take the value of the shaping data in SQL Server in C #:
INT type use Get32 ();
Smallint type uses GetInt16 ();
Tinyint type use GetByte ();
If you only query a column, you can't use the getordinal function, otherwise you will throw an indexoutofrangeException exception.
Use the ISDBNULL judgment field to be empty before taking the data.