With EF Core 7.0, when I query data with basic pagination:
var data = (from item in _db.items
where... // filtering
orderby.... // ordering
select item)
var dataToSend = await data.Skip(x).Take(Y).ToListAsync();
Everything works as expected.
However, when I try using Queryable.Take(x..y) "with the range parameter", for example:
var from = x;
var to = y;
var dataToSend = await data.Take(from..to).ToListAsync();
I receive an error that the LINQ expression could not be translated.
Why isn't this working?