I\'d like to avoid having many checks like the following in my code:
myObj.someStringField = rdr.IsDBNull(someOrdinal) ? string.
Use IS NULL or IS NOT NULL in WHERE-clause instead of ISNULL() method:
IS NULL
IS NOT NULL
SELECT myField1 FROM myTable1 WHERE myField1 IS NOT NULL