I wanted to add Dynamic Data functionality in my existing mvc app. Therefore, I downloaded the sample from codeplex.
The sample ran just fine, until I merged it with my mvc app. I received the following error:
"The method 'Skip' is only supported for sorted input in LINQ to Entities"
It's good to know there are 2 different templates:
- Dynamic Data Web Application (intended to work with LINQ to SQL)
- Dynamic Data Web Entities Application (intended to work with Entity Framework)
and apparently, the sample was the wrong kind of template. So, select your template carefully!
note1: if you're working with both of these technologies, check out this workaround
note2: Differences When Working with the ADO.NET Entity Framework to LINQ to SQL
note3: I was able to get the first type working with an entity model. (the registration of the model (either LINQ or EF) is the same for both templates); unfortunately, I couldn't find the required steps to switch from the first to the second template. Anyone?