Update to EFProviderWrappers is available

I’ve just posted a tiny update to EFProviderWrappers sample. It fixes the issue which was reported to me by several users, where NotSupportedException was being thrown during SaveChanges() from caching provider code. ┬á

You can download updated bits from MSDN Code Gallery. If you find any other issues, please report them as comments here.

Tags: , ,

  1. #1 written by Aymeric Lagier July 8th, 2010 at 12:51

    Thank for this update Jarek, but I have the same problem with stored procedures in EF4 and EFCachingProvider.

    Do you know why there’s this problem ?

    Thank you

    Regards,

    Aymeric Lagier

    RE Q
  2. #2 written by JCKodel September 1st, 2010 at 10:10

    Is there any way to control how much time a query is cached?

    RE Q
  3. #3 written by SquallATF October 13th, 2010 at 23:41

    EntityConnectionWrapperUtils.CreateEntityConnectionWithWrappers is not thread safe´╝îmetadataWorkspaceMemoizer.Add may be throw Exception when use multi-thread.

    RE Q
  4. #4 written by Robert November 17th, 2010 at 21:09

    I have found.. what i think to be a bug.. in the latest release of EFWrapperProvider for EF4. If i am using a SPROC for an update/delete/insert operation of an entity and I am using the EFWrapperProvider i get an exception thrown.

    In DbConnectionWrapper.CreateDbCommand you currently throw a
    NotSupportedException().
    In the previous version of EFWrapperProvider this was instead
    return this.wrappedConnection.CreateCommand()

    After changing the new method to work the same way as the old method i no longer got the exception and it all seemd to work fine. Is this exception being thrown by design or was it just missed? If it is meant to do this then whats the reasoning behind it.

    Great project anyways.
    Thanks,
    Rob

    RE Q

SetPageWidth