Morning,
I would like to know how to write the following SQL statement in LINQ.
SELECT TOP 6 * FROM Questions
ORDER BY NEWID()
I would also like to know, how i could bind this to a asp.net repeater control to display the 6 questions.
Many thanks 🙂
The Linq style would be
then you attach that to a repeater by setting its
DataSourceproperty to the above, and calling theDataBindmethod.