DBNull if statement

前端 未结 9 1561
再見小時候
再見小時候 2020-12-01 13:55

I\'m trying to execute a stored procedure and then use an if statement to check for null values and I\'m coming up short. I\'m a VB guy so please bear with me if I\'m making

9条回答
  •  余生分开走
    2020-12-01 14:23

    The closest equivalent to your VB would be (see this):

    Convert.IsDBNull()
    

    But there are a number of ways to do this, and most are linked from here

提交回复
热议问题