In the case of a request, there are no objects. An executed SQL command can return any number of rows that can lead to materialized objects or some kind of projection. You can access a DbContext or ObjectContext object, and through your ChangeTracker you can see the state of entities inside it, but as far as I know, there is no direct way to map a specific command that you execute with any specific objects. Depending on your context, the number, type and state of objects in ChangeTracker may be sufficient to accomplish what you need.
source share