A
Andy B.
I have the function below. I am confused because I have created ones like
this lots of times and never ran into this error before. Is there any way to
fix it? I am trying to return results from an ObjectQuery.
Public Function GetNewsArticles(ByVal Type As String) As ObjectQuery(Of
NewsArticles)
If (Type = "Archive") Then
Return DBContext.NewsArticles.Where("it.Archived =
true").OrderBy("it.CreationDate desc")
End If
If (Type = "Current") Then
Return DBContext.NewsArticles.Where("it.Archived =
false").OrderBy("it.CreationDate desc")
End If
End Function
this lots of times and never ran into this error before. Is there any way to
fix it? I am trying to return results from an ObjectQuery.
Public Function GetNewsArticles(ByVal Type As String) As ObjectQuery(Of
NewsArticles)
If (Type = "Archive") Then
Return DBContext.NewsArticles.Where("it.Archived =
true").OrderBy("it.CreationDate desc")
End If
If (Type = "Current") Then
Return DBContext.NewsArticles.Where("it.Archived =
false").OrderBy("it.CreationDate desc")
End If
End Function