Mid EF Core

How to map stored procedures and database views?

  • Use FromSqlRaw or FromSqlInterpolated for stored procedures and views.
  • Map views as query types or entities without keys (read-only).
  • For insert/update via SP, call them directly from DbContext.

More from Entity Framework Core Tutorial

All questions for this course