Skip to content
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

Add source of command execution to CommandEventData #24193

Closed
Giorgi opened this issue Feb 18, 2021 · 1 comment
Closed

Add source of command execution to CommandEventData #24193

Giorgi opened this issue Feb 18, 2021 · 1 comment

Comments

@Giorgi
Copy link
Contributor

Giorgi commented Feb 18, 2021

EF Core interceptors fire in response to every command/query no matter whether it was a Linq query or one of the raw query methods (FromSqlRaw, FromSqlInterpolated, ExecuteSqlRaw, etc) The event argument passed to the interceptor method doesn't indicate the type of the query or source of the command

Proposed solution:

Add an (enum) property to CommandEventData indicating the source of the query/command.

Thoughts?

@ajcvickers
Copy link
Member

Duplicate of #23719. The solution you propose seems like a good place to start if you're thinking of doing a PR.

@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants