Created
July 10, 2020 11:18
-
-
Save mikependon/c4b4497fbb2d03f0a3f216d377af1803 to your computer and use it in GitHub Desktop.
EF_RawSql_Direct
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].[Person];"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment