What is the best way of rewriting these (erroneous) lines?
bool? result = dr["result"] == DBNull.Value ? null : Convert.ToInt32(dr["result"]);
...and...
dr["result"] = result ?? DBNull.Value;
Both do not compile.
I am using the MySql connector and it doesn't let me set, for example, dr["result"] = null; which is what I first tried.
Is there an more suitable .NET data type for representing a MySql nullable tinyint(1)?