79685673

Date: 2025-07-01 07:37:20
Score: 0.5
Natty:
Report link

This is possible since EF Core 6:

Context.topics.Where(//some logic).OrderBy(e => EF.Functions.Random()).Take(6); 

it's in the package

Microsoft.EntityFrameworkCore

Source: https://learn.microsoft.com/en-us/ef/core/what-is-new/ef-core-6.0/whatsnew#effunctionsrandom

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Jan