dotnet/efcore

Indicate where SQL comes from (SaveChanges, LINQ query, etc.) in IDbCommandInterceptor

Opened this issue · 1 comments

Maybe this already is possible, but noone could have helped me on Stackoverflow: https://stackoverflow.com/questions/65287475/efcore-5-0-interceptor-statement-type

I'd like to know the Statement-Type in interceptors, so can tell e.g. Update-Statements apart from Select-Statements.

@tsproesser There isn't a way to do this, but agree that it would be useful.