Adds interception infrastructure supporting capturing, modification and cancellation of several aspects of the sync update pipeline.
- New IDbInterceptor interface supporting the following hooks: CommandExecuting, ConnectionOpening and CommandTreeCreated.
- Interception implemented via new intercepting decorators for DbCommand and EntityConnection.
- Interceptors registered and dispatched via a new global, threadsafe singleton class: "Interception".
- Interceptors may be global or per-context instance. Latter is implemented via a ThreadLocal that gets set when a context is inside sync SaveChanges.
- Removes DbConfiguration based command interception stuff (superceded by this change). Intercepted DbCommands are now mutable.
↧