Mid EF Core

How to handle raw SQL or stored procedures when needed?

  • Use FromSqlRaw or ExecuteSqlRaw to execute raw SQL.
  • Map results to entities or DTOs.
  • Use for performance-critical or legacy operations not easily expressed in LINQ.

More from Entity Framework Core Tutorial

All questions for this course