Vb.net 检查字段结果查询Linq to实体的空值
请参见下面的选择Vb.net 检查字段结果查询Linq to实体的空值,vb.net,linq-to-entities,Vb.net,Linq To Entities,请参见下面的选择 dim query = from a in MyContext.MyTables Where Not a.ID = 1 Select a 我想检查字段的值是否为空。我正在做以下工作: if query.count > o then if a(0)("field") is nothing then messagebox.show("INVALID VALUE FOR RETURNING") end if end if 这是一个无法比
dim query = from a in MyContext.MyTables
Where Not a.ID = 1
Select a
我想检查字段的值是否为空。我正在做以下工作:
if query.count > o then
if a(0)("field") is nothing then
messagebox.show("INVALID VALUE FOR RETURNING")
end if
end if
这是一个无法比较值a(0)(“字段”)的实例
我该怎么做
谢谢。如果是(0)(“字段”)请尝试
。tostring=string.empty则Tks用于anwswer。但我一直有同样的问题。