Skip to content

Commit 07260bf

Browse files
ajcvickersroji
andauthored
Finish What's New in EF7 (#4076)
Co-authored-by: Shay Rojansky <[email protected]>
1 parent 61926f4 commit 07260bf

File tree

8 files changed

+1644
-20
lines changed

8 files changed

+1644
-20
lines changed

entity-framework/core/querying/sql-queries.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ The following example passes a single parameter to a stored procedure by includi
4343

4444
[!code-csharp[Main](../../../samples/core/Querying/SqlQueries/Program.cs#FromSqlStoredProcedureParameter)]
4545

46-
While this syntax may look like regular C# [string interpolation](https://learn.microsoft.com/dotnet/csharp/language-reference/tokens/interpolated), the supplied value is wrapped in a `DbParameter` and the generated parameter name inserted where the `{0}` placeholder was specified. This makes > The <xref:Microsoft.EntityFrameworkCore.RelationalQueryableExtensions.FromSql%2A> safe from SQL injection attacks, and sends the value efficiently and correctly to the database.
46+
While this syntax may look like regular C# [string interpolation](/dotnet/csharp/language-reference/tokens/interpolated), the supplied value is wrapped in a `DbParameter` and the generated parameter name inserted where the `{0}` placeholder was specified. This makes > The <xref:Microsoft.EntityFrameworkCore.RelationalQueryableExtensions.FromSql%2A> safe from SQL injection attacks, and sends the value efficiently and correctly to the database.
4747

4848
When executing stored procedures, it can be useful to use named parameters in the SQL query string, especially when the stored procedure has optional parameters:
4949

0 commit comments

Comments
 (0)