Entity Framework Include OrderBy random generates duplicate data
问题 When I retrieve a list of items from a database including some children (via .Include), and order the randomly, EF gives me an unexpected result.. I creates/clones addition items.. To explain myself better, I've created a small and simple EF CodeFirst project to reproduce the problem. First i shall give you the code for this project. The project Create a basic MVC3 project and add the EntityFramework.SqlServerCompact package via Nuget. That adds the latest versions of the following packages: