Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions entity-framework/core/querying/sql-queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ uid: core/querying/sql-queries

Entity Framework Core allows you to drop down to SQL queries when working with a relational database. SQL queries are useful if the query you want can't be expressed using LINQ, or if a LINQ query causes EF to generate inefficient SQL. SQL queries can return regular entity types or [keyless entity types](xref:core/modeling/keyless-entity-types) that are part of your model.

> [!TIP]
> You can view this article's [sample](https://github.com/dotnet/EntityFramework.Docs/tree/main/samples/core/Querying/SqlQueries) on GitHub.

## Basic SQL queries

You can use <xref:Microsoft.EntityFrameworkCore.RelationalQueryableExtensions.FromSql*> to begin a LINQ query based on a SQL query:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

namespace WithContextFactory;

#pragma warning disable CS1998 // This async method lacks 'await' operators and will run synchronously.

public class MyController
{
#region Construct
Expand Down
12 changes: 0 additions & 12 deletions samples/core/Querying/SqlQueries/Blog.cs

This file was deleted.

57 changes: 0 additions & 57 deletions samples/core/Querying/SqlQueries/BloggingContext.cs

This file was deleted.

12 changes: 0 additions & 12 deletions samples/core/Querying/SqlQueries/Post.cs

This file was deleted.

154 changes: 0 additions & 154 deletions samples/core/Querying/SqlQueries/Program.cs

This file was deleted.

15 changes: 0 additions & 15 deletions samples/core/Querying/SqlQueries/SqlQueries.csproj

This file was deleted.

7 changes: 0 additions & 7 deletions samples/core/Samples.sln
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ClientEvaluation", "Queryin
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tracking", "Querying\Tracking\Tracking.csproj", "{CCD901FE-20C8-4DC0-AD9C-8B8333EE277B}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SqlQueries", "Querying\SqlQueries\SqlQueries.csproj", "{63B6747C-470D-4561-A3A2-3C024747BE3B}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComplexQuery", "Querying\ComplexQuery\ComplexQuery.csproj", "{AD0BF60E-B46C-4181-BF43-D68801E5D259}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tags", "Querying\Tags\Tags.csproj", "{2343A153-5832-41B9-A1FF-D80D3107A1DA}"
Expand Down Expand Up @@ -291,10 +289,6 @@ Global
{CCD901FE-20C8-4DC0-AD9C-8B8333EE277B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CCD901FE-20C8-4DC0-AD9C-8B8333EE277B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CCD901FE-20C8-4DC0-AD9C-8B8333EE277B}.Release|Any CPU.Build.0 = Release|Any CPU
{63B6747C-470D-4561-A3A2-3C024747BE3B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{63B6747C-470D-4561-A3A2-3C024747BE3B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{63B6747C-470D-4561-A3A2-3C024747BE3B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{63B6747C-470D-4561-A3A2-3C024747BE3B}.Release|Any CPU.Build.0 = Release|Any CPU
{AD0BF60E-B46C-4181-BF43-D68801E5D259}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AD0BF60E-B46C-4181-BF43-D68801E5D259}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AD0BF60E-B46C-4181-BF43-D68801E5D259}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down Expand Up @@ -587,7 +581,6 @@ Global
{524AE4A6-A15F-466C-AED3-CDF3209E4394} = {1AD64707-0BE0-48B0-A803-916FF96DCB4F}
{AF8B71E6-454F-4B66-98EE-2128B415EC45} = {1AD64707-0BE0-48B0-A803-916FF96DCB4F}
{CCD901FE-20C8-4DC0-AD9C-8B8333EE277B} = {1AD64707-0BE0-48B0-A803-916FF96DCB4F}
{63B6747C-470D-4561-A3A2-3C024747BE3B} = {1AD64707-0BE0-48B0-A803-916FF96DCB4F}
{AD0BF60E-B46C-4181-BF43-D68801E5D259} = {1AD64707-0BE0-48B0-A803-916FF96DCB4F}
{2343A153-5832-41B9-A1FF-D80D3107A1DA} = {1AD64707-0BE0-48B0-A803-916FF96DCB4F}
{17A82259-1B8A-4199-A564-AC250F51360E} = {1AD64707-0BE0-48B0-A803-916FF96DCB4F}
Expand Down
Loading