Let’s say I have an Entity Framework 6 query which looks like this:
var orderedPayInfoes = context.Employees
.Where(x => x.EmployeeId > 5)
.OrderBy(x => x.CreatedOn)
.Select(x => x.PayInfo);
I know that typings will not respect the previous declared order. e.g the type will be IQueryable<PayInfo>
and not IOrderedQueryable<PayInfo>
. Does the guarantee order?
Note: this cannot be validated properly only through testing since QueryConverter internally has optimizations which change the way SQL is written depending on the query provided.