How do I view the parameters (Bind Variables) passed to the generated SQL command created by Entity Framework (V5)?
public IEnumerable<SearchItem> Search(string searchTerm)
{
return DbSet.Where(p => p.ItemId.Contains(searchTerm)).ToList();
}
The code above generated the following SQL and includes the bind variable __linq__0
SELECT
"Extent1"."ITEM" AS "ITEM",
FROM "TableName" "Extent1"
WHERE UPPER("Extent1"."ITEM") LIKE :p__linq__0
How do I debug and view the value of this bind variable when debugging? I have seen answers which suggested enabling tracing, but there must be a way of checking these values in the Visual Studio debugger.
Thanks.