I would like to translate the following SQL statement to a lambda expression:
SELECT TOP 1 * FROM tbPessoa order by NEWID()
What do I put in the OrderBy
that will be accepted?
var pessoa = contexto.tbPessoa.OrderBy(???).FirstOrDefault()
Note: the table has more than 3000 records, so ideally this should not be done in memory.