Guest User

Untitled

a guest
Jul 23rd, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. string IDNum;
  2. int i = reader.GetOrdinal("PrimaryKey");
  3. if ( ! reader.IsDBNull(i) )
  4. {
  5. IDNum = reader.GetString(i);
  6. }
  7. else
  8. {
  9. IDNum = null;
  10. }
Add Comment
Please, Sign In to add comment