-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delay DbCommandInterceptor.CommandCreated until DbCommand properties are initialized #17261
Comments
Compare to #15988 |
@ajcvickers I was excited to see the following in the EF Core 5 New Features:
I've added my own However if I run It seems a shame that I know it's sort of an edge case and easy to work around but wanted to add this as part of this conversation. |
I was hoping I could now log the CommandText from this method without having to override Execut* methods, but the DbCommand exposed as the result of CommandCreated is empty.
We discussed with @ajcvickers that having the properties populated could be more useful, but it is likely we don't have time to change this for 3.0 RTM, in which case we can add "CommandInitialized" method later.
The text was updated successfully, but these errors were encountered: