Is set of objects obtained with Entity Framework ordered by primary key by default?
UPDATE: In what order table rows are read if there is no ‘order by’ in query. will they always be in random order? or still sorted by primary key?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no order by default.
The order of the retrieved data depends on your DBMS.
Just profile your database and you will see that the Entity Framework Query has no
Order Byin the SQL-Query.