if i run this under c #
from p in Addresses where p.Address2 == null select p.AddressID
it will generate this request
SELECT [t0].[AddressID]
FROM [dbo].[Address] AS [t0]
WHERE [t0].[Address2] IS NULL
if I run it under vb.net
from p in Addresses where p.Address2 = nothing select p.AddressID
it will generate this request
SELECT [t0].[AddressID]
FROM [dbo].[Address] AS [t0]
WHERE [t0].[Address2] = ''
p.Address2 is a varchar field that takes a null value
why is vb.net "wrong"?
source
share