Daniel Hilgarth
Daniel Hilgarth

Reputation: 174329

Entity Framework: Get executed query including parameter types

is there a way to get the executed query including the parameters for ObjectQuery<T> instances in EF1?
I can do ToTraceString but that returns only the query, but not the parameters.
ObjectQuery<T> has a property Parameters, but they live in the .NET world, i.e. the value of ParameterType is System.String and not varchar(15).
How do I get this info?

Upvotes: 2

Views: 1110

Answers (1)

Ladislav Mrnka
Ladislav Mrnka

Reputation: 364299

You can use EF tracing provider or some commercial tools like:

Upvotes: 1

Related Questions