No: you need to iterate through a selection of parameters by executing string.Replace () to get the equivalent. Is this especially painful when you need to use syntax ? , not the @parametername syntax.
The reason for this is that the complete string is never collected. Parameters and are sent to the server and processed as data and are never included in the string.
However, I alone understand your pain. It would be nice if they included some kind of .ComposeSQL() method, which you could call for debugging purposes, which probably also leads to a compiler warning to avoid being used in production.
source share