1
votes

I am using EF6 with 2nd level caching with EF Provider Wrappers but it is not working.

I am getting this error:

No Entity Framework provider found for the ADO.NET provider with invariant name 'EFCachingProvider'. Make sure the provider is registered in the 'entityFramework' section of the application config file. See http://go.microsoft.com/fwlink/?LinkId=260882 for more information.

After looking on the above link, I used config file registration after that the following error occurs:

The 'Instance' member of the Entity Framework provider type 'EFCachingProvider.EFCachingProviderFactory, EFCachingProvider, Version=1.0.0.0, Culture=neutral, PublicKeyToken=def642f226e0e59b' did not return an object that inherits from 'System.Data.Entity.Core.Common.DbProviderServices'. Entity Framework providers must inherit from this class and the 'Instance' member must return the singleton instance of the provider. This may be because the provider does not support Entity Framework 6 or later.

1

1 Answers

1
votes

Due to changes to the provider model in EF6 (and some other features) the EF Caching Provider does not work with EF6+ versions. I created a Second Level Cache for EF 6.1 - see this blog post for more details.