Skip to content

Commit 2cbc9aa

Browse files
authored
Light Freshness Edit: ASP.NET and EF Core - 3 tutorials (#37033)
* refresh content + edits after review * update bookmark ref * revert to xref style links * revert to xref style links * revert to xref style links
1 parent 569b2a3 commit 2cbc9aa

File tree

4 files changed

+292
-586
lines changed

4 files changed

+292
-586
lines changed

aspnetcore/data/ef-mvc/advanced.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ In this tutorial, you:
3434

3535
One of the advantages of using the Entity Framework is that it avoids tying your code too closely to a particular method of storing data. It does this by generating SQL queries and commands for you, which also frees you from having to write them yourself. But there are exceptional scenarios when you need to run specific SQL queries that you have manually created. For these scenarios, the Entity Framework Code First API includes methods that enable you to pass SQL commands directly to the database. You have the following options in EF Core 1.0:
3636

37-
* Use the `DbSet.FromSql` method for queries that return entity types. The returned objects must be of the type expected by the `DbSet` object, and they're automatically tracked by the database context unless you [turn tracking off](crud.md#no-tracking-queries).
37+
* Use the `DbSet.FromSql` method for queries that return entity types. The returned objects must be of the type expected by the `DbSet` object, and they're automatically tracked by the database context unless you [turn tracking off](crud.md#disable-tracking-of-entity-objects-no-tracking-queries).
3838

3939
* Use the `Database.ExecuteSqlCommand` for non-query commands.
4040

0 commit comments

Comments
 (0)