当我编写如下所示的代码时,我收到此错误消息:“不支持查询运算符'ElementAtOrDefault'。”关于Linq到SQL的一个问题
我该如何解决?
Dim tmpQuestion As New UIData
Dim strViews = From t In tmpQuestion.LU_QUESTIONs _
Where t.ID_QUESTION = Request.QueryString("IdQuestion") _
Select t
Dim mtViews = strViews(0).MT_VIEWS
关于后期绑定的好处 - 如果你不小心,可以真的把你搞砸了。 – 2009-02-27 14:30:15