我有以下两个查询从同一个表中获取信息 我需要比较两个表,找到所有值不同的信息。有没有办法在不必循环的情况下做到这一点?
Dim housepress = (From press In db.PressInfo
Where press.PressName = pressname And press.CustomerID = "House"
Select press).ToList()
Dim curpress = (From press In db.PressInfo
Where press.PressName = pressname And press.CustomerID = Customername
Select press)
我尝试使用curpress.Except
但是我收到一条错误“本地序列无法在Linq to SQL中使用