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