Select from following answers:- bool discontinued = reader.GetBoolean(2)

- bool discontinued = reader.GetBoolean(3);
- bool discontinued = reader.Read();
- All Above
Use the DbDataReader.GetBoolean method to get a bit column value. Specify the zero-based column ordinal, in this case 2.
Specifying the column ordinal 3 is incorrect because the column position is zero-based.
Show Correct Answer
Source: MeasureUp.Com | |
Alert Moderator