FromSqlRaw() - inconsistent/incorrect documentation #25567
Labels
area-docs
area-query
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-bug
Milestone
When I follow this documentation: https://docs.microsoft.com/en-us/dotnet/api/microsoft.entityframeworkcore.relationalqueryableextensions.fromsqlraw?view=efcore-5.0 I get an error message:
Example:
However, when I follow this documentation: https://docs.microsoft.com/en-us/ef/core/querying/raw-sql, the SQL created is sound and the query is executed correctly:
Example:
Here the parameters are specified without curly braces - which I think is logical, since there is no string interpolation going on here.
It seems to me that parts of the documentation are wrong.
Hence, I suggest adjusting the documentation and removing the curly braces when passing in named parameters.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: