The db I am querying from is returning some null values. How do I safeguard against this and make sure the caller gets some data back.
The code I have is:
Using DataReader
while (dr.Read())
{
vo = new PlacementVO();
vo.PlacementID = dr.GetString(0);
If I use dataset, I can do it like this.
obj.email = (row["email"] == DBNull.Value) ? String.Empty : Convert.ToString(row["email"]);
Thanks