I\'d like to avoid having many checks like the following in my code:
myObj.someStringField = rdr.IsDBNull(someOrdinal) ? string.
If there is not ISNULL() method, you can use this expression instead:
ISNULL()
CASE WHEN fieldname IS NULL THEN 0 ELSE fieldname END
This works the same as ISNULL(fieldname, 0).
ISNULL(fieldname, 0)