Why does ED, with EF6 selected as the target, not generating correct EF6 "using" statements?
Posted: Mon 04 Aug 2014 10:10
Hi,
Entity Framework 6 has pulled out quite a bit of code from the .NET runtimes into its own EntityFramework.dll due to it being open source now. As a result one has to make changes to the "using" statements where EF is used. This includes the code that ED generates. Therefore, with ED 5.7.412, when selecting EF6 as the export target, I am wondering why ED generates code with incorrect "using" statements, ie the old EF5 format rather than the new EF6 format.
I get:
using System.Data.Common;
using System.Data.EntityClient;
using System.Data.Objects;
using System.Data.Objects.DataClasses;
However I should get:
using System.Data.Entity.Core.Common;
using System.Data.Entity.Core.EntityClient;
using System.Data.Entity.Core.Objects;
using System.Data.Entity.Core.Objects.DataClasses;
I am using the POCO template.
Thanks,
Edward
Entity Framework 6 has pulled out quite a bit of code from the .NET runtimes into its own EntityFramework.dll due to it being open source now. As a result one has to make changes to the "using" statements where EF is used. This includes the code that ED generates. Therefore, with ED 5.7.412, when selecting EF6 as the export target, I am wondering why ED generates code with incorrect "using" statements, ie the old EF5 format rather than the new EF6 format.
I get:
using System.Data.Common;
using System.Data.EntityClient;
using System.Data.Objects;
using System.Data.Objects.DataClasses;
However I should get:
using System.Data.Entity.Core.Common;
using System.Data.Entity.Core.EntityClient;
using System.Data.Entity.Core.Objects;
using System.Data.Entity.Core.Objects.DataClasses;
I am using the POCO template.
Thanks,
Edward