var quotes = (from q in db.Intrebaris
where q.id_materie == id_mat & q.id_tip_intrebare == tip_intr
select q)
.OrderBy(x =>SqlFunctions.Rand())
.Take(10);
return quotes.ToList();
Do you have any idea why this happens? Thank a lot!
It's because of the
SqlFunctions.Rand()
. MSDN says: