EF Core Skip/Take Order By
When doing a Skip/Take EF is automatically ordering by the Primary Key (which is fine by default).
But when I specify an Order By it should NOT also order by the Primary Key. It should only use the Ordering that I specify.
Sample SQL. If i specify to order by Name and the primary key is ID. It should not add , [j].[ID] exec sp_executesql N'SELECT [j].[Name] FROM [Job] AS [j] ORDER BY [j].[Name], [j].[ID] OFFSET @__p_1 ROWS FETCH NEXT @__p_2 ROWS ONLY',N'@__p_1 int,@__p_2 int',@__p_1=0,@__p_2=10'
Are you using Include? Or projecting a collection out?
This issue is lacking enough information for us to effectively reproduce. Please post a runnable project/solution or complete code listing that demonstrates the behavior you are seeing.
EF Team Triage: Closing this issue as the requested additional details have not been provided and we have been unable to reproduce it.
BTW this is a canned response and may have info or details that do not directly apply to this particular issue. While we'd like to spend the time to uniquely address every incoming issue, we get a lot traffic on the EF projects and that is not practical. To ensure we maximize the time we have to work on fixing bugs, implementing new features, etc. we use canned responses for common triage decisions.