Sure, i got the same issue couple months back. I wanted to break the LINQ
query to the new line, i forgot to put "_" (underscore) at the end of
the breaking line then i got an error message.
Down here in yellow.
Public Shared Function GetMaxGroupedTag() As GroupedTag
Dim m_max_tag As New GroupedTag
Dim m_tags As CodeHotSpot.ArticleTags.ArticleTag() =
CodeHotSpot.ArticleTags.Api.ReadAll(-1,
CodeHotSpot.ArticleTags.Enumeration.OrderBy.ArticleId,
CodeHotSpot.ArticleTags.Enumeration.SortOrder.ASC)
Dim m_query = From t In m_tags Group t By t.Tag Into Count() *_*
Select Tag, Total = Count Order By Total
Descending
Dim m_max_query = From u In m_query *_*
Select u Take 1
If m_max_query.Count > 0 Then
m_max_tag = New GroupedTag(m_max_query(0).Tag,
m_max_query(0).Total)
End If
Return m_max_tag
End Function
On Tue, Nov 24, 2009 at 5:00 PM, Cerebrus <[email protected]> wrote:
> Underscore ? This is C#, if I'm not mistaken.
>
> On Nov 24, 2:22 am, Gunawan Hadikusumo <[email protected]>
> wrote:
> > Site db = new Site();
> > var query = from sn in db.SiteName _ <=you forgot
> underscore,
> > mate !
> > select sn;
>