If you have the same problem, I had ...
int Limit = 24; return (from Q in Context.table where Q.some_key == 1234 select new classDataType() { FirstAttribute = Q.FirstCol, SecondAttribute = Q.SecondCol, ThirdAttribute = Q.ThirdCol }).ToList().OrderBy(x => Guid.NewGuid()).Take(Limit).ToList();
After sql-linq, it should be a LIST, so maybe you need to change the list before using the OrderBy-NewGuid method:
return (...-SQL-SELECT-LINQ-...) .ToList()
Froschkoenig84 Jun 08 '15 at 8:13 2015-06-08 08:13
source share