In this example, an error occurs if row.FirstName or row.LastName are NULL .
How do I rewrite the Select clause to convert the DBNull value to the empty string "" ?
Dim query = From row As myDataSet.myDataRow in myDataSet.Tables("MyData") _ Select row.FirstName, row.LastName
NOTE. Because the DataSet is strongly typed. I can use row.isFirstNameNull() , but IIF(row.isFirstNameNull(), "", row.FirstName) will not work, since all parameters are referenced.
source share