none
How EF6 will work with Entity Framework Caching Provider Wrappers RRS feed

  • Question

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

    I am getting bellow 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 following error has come.

    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.


    Friday, December 27, 2013 8:42 AM

Answers

  • Hello,

    According to your description, you want to know how to use EFCaching Provider with Entity Framework 6.

    Unfortunately, it seems that the Entity Framework team haven't looked at making the caching provider work with EF6 at this stage (the provider is written and maintained by a former member of the EF team).

    One of the Entity Framework team members is planning to look at it, but it won't be until they've finished working on the RTM of EF6. One of the main things would be to update the code to work against the moved provider model in EF6.

    See it here in comments in the link below:

    http://blogs.msdn.com/b/adonet/archive/2013/08/21/ef6-release-candidate-available.aspx

    If you wanted to try, there are details on upgrading providers here: http://entityframework.codeplex.com/wikipage?title=Rebuilding%20EF%20providers%20for%20EF6

    If I have misunderstood, please let me know.

    Regards.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, December 30, 2013 2:50 AM
    Moderator