Skip to content

Delay DbCommandInterceptor.CommandCreated until DbCommand properties are initialized #17261

@divega

Description

@divega

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions