Merged
Conversation
This was referenced Jun 15, 2019
Closed
fccc1e3 to
f5e663c
Compare
f5e663c to
4312a94
Compare
Fixes #15066 The general idea is the same as `IDbCommandInterceptor` in EF6. Specifically: * Command interceptors can be used to view, change, or suppress execution of the `DbCommand` and to modify the result before it is returned to EF. `DbCommandInterceptor` is provided as an abstract base class. * Example of registration: ```C# builder.UseSqlServer( myConnectionString, b => b.CommandInterceptor(myInterceptor); ``` * Multiple interceptors can be composed using the `CompositeDbCommandInterceptor`. * Extensions can also register interceptors in the internal service provider. If both injected and application interceptors are found, then the injected interceptors are run in the order that they are resolved from the service provider, and then the application interceptor is run last.
4312a94 to
c89f015
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #15066
The general idea is the same as
IDbCommandInterceptorin EF6.Specifically:
DbCommandand to modify the result before it is returned to EF.DbCommandInterceptoris provided as an abstract base class.CompositeDbCommandInterceptor.order that they are resolved from the service provider, and then the application interceptor is run last.