I am reading data from MySQL in C#. If the reader["A"].ToString is a NULL value in the MySQL table, I want the following command: int A = 0. Else (if reader["A"].ToString is not NULL), int A = 1.
How can I do this? I tried if(Convert.IsDbNull(reader["A"]))
but my C# Express isn't recognising IsDbNULL.
(I am able to get normal Varchar or Int data from the table)