[Enter feedback here]
Hi team,
Could we clarify when LINQ transits to SQL, whether it's PARAMETERIZED SQL that it translates to?
And if possible, could we add comparison between LINQ-to-SQL and Parametrized SQL?
Thanks,
Hua
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@HuaTang92 We are checking this and we will get back to you.
@timsander1 Please check this and provide insight into the same.
You can append toString() on the IQueryable generated by the LINQ Provider to examine how the query is passed to the service. Reference: https://stackoverflow.com/questions/41023747/how-can-i-trace-the-query-produced-by-the-documentdb-linq-provider
In this case - the LINQ Provider escapes the parameterized input as opposed to delegating this downstream.
@HuaTang92 Please let us know if you have any other question or we will go ahead and close the thread.
I made a minor doc update to add the ToString information.
Most helpful comment
You can append toString() on the IQueryable generated by the LINQ Provider to examine how the query is passed to the service. Reference: https://stackoverflow.com/questions/41023747/how-can-i-trace-the-query-produced-by-the-documentdb-linq-provider
In this case - the LINQ Provider escapes the parameterized input as opposed to delegating this downstream.