I am Getting an error while executing this query :
The method 'Skip' is only supported for sorted input in LINQ to Entities. The method 'OrderBy' must be called before the method 'Skip'.
var data = (from xx in VDC.SURVEY_EMAIL_BLAST
where xx.USER_ID == userid
orderby xx.ID
select xx.TEMPLATE_ID).Distinct().Skip(10).Take(10));
Actually, I am already using OrderBy
in that query.But, I'm getting the error.