Problem with EF6

Mar 6, 2014 at 1:16 PM
If I Reverse enquineer code first using VFP Entity Framework Provider (EF4 & EF5) then it works.
If I use VFP Entity Framework Provider (EF6) I get the following error.

System.Data.ProviderIncompatibleException: A null was returned after calling the 'GetService' method on a store provider instance of type 'VfpEntityFrameworkProvider.VfpProviderFactory'. The store provider might not be functioning correctly.
at System.Data.Entity.Design.Common.MetadataUtil.GetProviderServices(DbProviderFactory factory)
at System.Data.Entity.Design.EntityStoreSchemaGenerator.CreateStoreSchemaConnection(String providerInvariantName, String connectionString, Version targetEntityFrameworkVersion)
at System.Data.Entity.Design.SsdlGenerator.EntityStoreSchemaGeneratorDatabaseSchemaLoader.CreateStoreSchemaConnection(String providerInvariantName, String connectionString, Version& storeSchemaModelVersion)
at System.Data.Entity.Design.EntityStoreSchemaGenerator..ctor(String providerInvariantName, String connectionString, String namespaceName)
at Microsoft.DbContextPackage.Handlers.ReverseEngineerCodeFirstHandler.ReverseEngineerCodeFirst(Project project)
Coordinator
Mar 6, 2014 at 1:26 PM
That is a known issue... it seems the Reverse Engineer code wasn't updated to work with the new EF6 classes.

You can use VFP Entity Framework Provider (EF4 & EF5) to reverse engineer your code for an EF6 project.

Here is an example of how to do that:
http://randomdevnotes.com/2013/12/15/visual-foxpro-entity-framework-provider-v2-getting-started-with-code-first/