Skip to content

Instantly share code, notes, and snippets.

@mikependon
Created July 10, 2020 11:19
Show Gist options
  • Save mikependon/84d47f72c3e88692d44aa60eec5e1d4a to your computer and use it in GitHub Desktop.
Save mikependon/84d47f72c3e88692d44aa60eec5e1d4a to your computer and use it in GitHub Desktop.
EF_RawSql_Indirect
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