Where
절에있는 행을 명시 적으로 필터링 할 때 다음 쿼리가 배럴의 값이 NULL
인 행에 대해 아래의 오류를 발생시키는 이유는 무엇입니까? LINQ로 DBNull 필터링
Dim query = From row As dbDataSet.conformalRow In dbDataSet.Tables("conformal") _
Where Not IsDBNull(row.Cal) AndAlso tiCal_drop.Text = row.Cal _
AndAlso Not IsDBNull(row.Tran) AndAlso tiTrans_drop.Text = row.Tran _
AndAlso Not IsDBNull(row.barrel) _
Select row.barrel
If query.Count() > 0 Then tiBarrel_txt.Text = query(0)
Run-time exception thrown : System.Data.StrongTypingException - The value for column 'barrel' in table 'conformal' is DBNull.
Is [Field] Null() 메서드가 완벽하게 작동했습니다. 감사! – Steven