c# - Entity Framework (5) View parameters passed to generated SQL -


How do I view the passed parameter (bind variable) passed to the SQL command generated by Entity Framework (V5)?

P>

  public IEnumerable & lt; SearchItem & gt; Search (string searcharm) {return dbet. There (p => pitmid.rox (resource)). Tolist (); }  

The following SQL is generated in the code given above and include bind variable __ linq__0

  in the "Extent1" is. "ITEM" such as "ITEM", "table name" "extant 1" to "upper" ("extant 1". "ITEM") such as: p__linq__0  

How do I get the value of this binary variable Debug and see? Debugging? I have seen answers that suggest enabling tracing, but these visual studio debuggers should be a way to check these values.

Thank you.

You need to underline the command, the connection object, which you get by downloading the EF source code. You can. EF wraps everything for you


Comments