Created
July 10, 2020 11:19
-
-
Save mikependon/84d47f72c3e88692d44aa60eec5e1d4a to your computer and use it in GitHub Desktop.
EF_RawSql_Indirect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using (var context = new DatabaseContext()) | |
{ | |
var customers = context | |
.People | |
.FromSqlRaw("SELECT * FROM [dbo].[Customer];"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment