Author: .NET Web Development and Tools Blog | Posted on: 9/13/2012 4:46:52 PM | Views : 937

The EntityDataSource control is designed to work with the ObjectContext API because that's all that existed when the control was created. The DbContext API was introduced later, in Entity Framework 4.1 alongside the Code First development workflow.  Since Code First and DbContext were introduced together you might be accustomed to associating the two, but now in Entity Framework 5.0 the DbContext API is the recommended and default API for all development workflows - Database First and Model First as well as Code First.  So if you want to use the EntityDataSource control, sooner or later you'll want to know how to use it with the DbContext API. David Ebbo has an excellent blog post on how to do that in a Dynamic Data project...(read more) ...

Go to the complete details ...