Hello Imar,
you have shown how we can create anonymous types and bind them to data bound controls.
like this
Code:
Using myDatabaseContext As DataContext = New DataContext()
Dim favGenres = From a In myDatabaseContext.Genres_
Order By a.Name _
Select New With {a.Name, a.Reviews}
Repeater1.DataSource = favGenres
Repeater1.DataBind()
End Using
but how do I return the same result if put this code into a separate class library. I can not return anonymous type.
Can you please give me code for the same.
Thanks