List<tblX> messages = (from x in db.tblX where x.msg_id == id_id
|| x.name == firstName select x).ToList();
我得到错误:
'tblX' 上的属性 'x' 无法设置为 'null' 值。您必须将此属性设置为“Int16”类型的非空值。
我在 db 中有一个属性 msg_blocked,它可以为空且为整数。我知道我需要进行转换,但我不使用它或在我的 linq 中的任何地方都不需要它。