LINQ to Entities does not recognize the method 'get_Item(Int32)' method, and this method cannot be translated into a store expression.
objD = (From tblD In entity.Ds
Where tblD.DId = objDList(0).DRQId
Select tblD).FirstOrDefault()
I have faced the above error and find out some strange solution for that
Dim dId As String = objDList(0).DId
objD = (From tblD In entity.Ds
Where tblD.DId = dId
Select tblD).FirstOrDefault()
Thanks to
http://www.xtremedotnettalk.com/showpost.php?p=469218&postcount=3
objD = (From tblD In entity.Ds
Where tblD.DId = objDList(0).DRQId
Select tblD).FirstOrDefault()
I have faced the above error and find out some strange solution for that
Dim dId As String = objDList(0).DId
objD = (From tblD In entity.Ds
Where tblD.DId = dId
Select tblD).FirstOrDefault()
Thanks to
http://www.xtremedotnettalk.com/showpost.php?p=469218&postcount=3
No comments:
Post a Comment