I know how to show underlying SQL query in EF Core. But what that shows me is like:
UPDATE [tow_base]
SET [speed] = @p75,
[date_last_modified] = @p76,
[miles_per_division] = @p77,
[owner_user] = @p78
WHERE [tow_id] = @p81;
That particular query was generated in context.SaveChanges()
, so I am not directly setting the parameters.
I can execute that query in any SQL client, with the values I think are in there, and it works. There are also value converters involved in many of those fields, which means the values I have stored in the record being updated are not going to be the same types as the parameters passed to the database UPDATE
statement.
Is there any way I can see exactly what those @p
variables are (particularly their declared type)?