Last post Aug 23, 2018 02:06 PM by ahmedhelali100
Aug 17, 2018 08:12 AM|ahmedhelali100|LINK
I am using visual studio 2017 with Microsoft .NET framework version 4.7 and Entity Framework 6 and SQL Server 2012.
while adding Data source to a Web Form:
I have this error:
I did add Dynamic Data provider for Entity Framework 6 & EntityDataSource control for Entity Framework 6 as a solution proposed on the same question but it didn't work for me and I still have the same problem.
Is there any solution (without the downgrading to Entity Framework 5) ?
Aug 20, 2018 09:15 AM|Brando ZWZ|LINK
According to the error message, the default <asp:EntityDataSource> doesn't support EF 6.
For EF 6, if you want use EntityDataSource, please install Microsoft.AspNet.EntityDataSource and Microsoft.AspNet.DynamicData.EFProvider packages from NuGet.
But the user interface isn't supported when using EF6. We no longer recommend using the Entity Data Source for new projects, so we just did the work to provide a data source that is usable with EF6. You need to perform configuration directly
in the markup.
More details, you could refer to below answer:
Aug 23, 2018 02:06 PM|ahmedhelali100|LINK
Hi Brando ZWZ,
Thank you for helping me here with my issue.
I didn't know that EF6 doesn't support the user interface. so I ll try the module binding and I hope it works.