Introdcution
Today, I am introducing the release of Dynamic Data Provider and EntityDataSource for the Entity Framework 6. I've also described in the Preview Release that the preview of these features were released earlier and here comes the final release.
You can determine the following features in this release:
- EntityDataSource for Entity Framework 6
- Dynamic Data Provider for Entity Framework 6
Download
You can easily download this release by the following NuGet Package:
- Install-Package Microsoft.AspNet.DynamicData.EFProvider -Version 6.0.0
- Install-Package Microsoft.AspNet.EntityDataSource -Version 6.0.0
Getting Started with Dynamic Data Provider
This is the new release of Dynamic Data EFProvider for the Entity Framework 6. You can apply any approach here like Code First, Model First and Database First to associate with the Entity Framework.
When creating the Dynamic Data Entities Web Application and after installing the Microsoft.AspNet.DynamicData.EFProvider NuGet Package, we can add the following code in RegisterRoutes in the Global.asax.cs to register the DbContext that is defined as in the following:
- public static void RegisterRoutes(RouteCollection routes)
- {
- DefaultModel.RegisterContext(new Microsoft.AspNet.DynamicData.ModelProviders.EFDataModelProvider(
- () => new Cricketer_SiteEntities()),
- new ContextConfiguration { ScaffoldAllTables = true });
- }
When the application creation is successful, you can run the application and see that the list of tables are displayed on the Default page.
Getting Started with EntityDataSource
This is an update to the EntityDataSource control that shipped in the .NET Framework. Now the EntityDataSource control can work with the Entity Framework 6 since this is updated to work with it.
Now in this section, we'll work with this update in the ASP.NET web application. Use the following procedure.



Adam DawoudPosted Jul 22, 2019, 6:43 PM
Can i use Microsoft.AspNet.EntityDataSource -Version 6.0.0 in C#, thank you
Aaron QueenanPosted Feb 25, 2015, 11:04 PM
I'm using a DbContext with a parameterised constructor - NOT using a connection string in the config. The factory argument correctly constructs the DbContext using the parameterised constructor, but it appears that inside the provider, there is somewhere that it doesn't use the factory, I see an error that the connection string cannot be found as soon as I try to browse an entity set. Could I please file a bug report? Also, will this be open source or have a roadmap for EF7 and above? Thanks!