Dynamic Data - Choosing the right template
If you plan to kick the tires on ASP.NET Dynamic Data you need to make sure you pick the right project template for the if your using LINQ to SQL or Entity Framework. As you can see in the following New Project Dialog, there are two templates but you can easily pick the wrong one if you do it in a hurry.
One telling sign that you picked the wrong template would be you get errors doing some of the basic things like trying to list the data. The following is an example of what happens when you pick the Dynamic Data Web Application project which is intended to work with LINQ to SQL and instead hook it up to a Entity Framework data model.
"The method 'Skip' is only supported for sorted input in LINQ to Entities"
The correct template would have been the Dynamic Data Entities Web application.
If you haven't taken a look at Dynamic Data yet, take a couple minutes and watch one of the intro videos here.
Reader Comments