Adding and Removing interceptors in Entity framework doesn't work RRS feed

  • Question

  • I tried using interceptor for just one query with the below code.

     var stringTrimmerInterceptor = new StringTrimmerInterceptor();
    //EF query to list
      DbInterception.Remove(stringTrimmerInterceptor);   // This is not removing.

    When it is removed, I thought the interceptor will be unsubscribed . However its' not. Can Someone help.

    Friday, May 5, 2017 1:39 AM

All replies