I have a database where sometimes there is no data in some columns, I would like to know how I could know that this column is null
.
I've tried with
if(!_Rellenar.HasRows) { isNull = false; }
And with:
if(!_Rellenar.Read()) { isNull = false; }
But in neither case does it work. I'm sure that in these columns, the database is empty, so I can not understand why I can do Read()
and HasRows()
without returning False
.
Thanks in advance.