Let’s say I have an entityframework 6 query which looks like so:
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 interally has optimizations which change the way sql is written depending on the query provided.