How to use SQL stored procedures with MVC Entity Framework

asp.net-core-mvc entity-framework-core stored-procedures

Question

My colleague tells me that ASP.NET MVC with Entity Framework Core does not support calling SQL stored procedures. Is this true? If not, where can I find information on how to do this? Thanks!

1
1
2/25/2017 2:28:23 AM

Popular Answer

If you take a look at the EF Core / EF 6.x Feature Comparison you will see that EF Core indeed does not support SQL Stored Procedures:

Stored procedure mapping allows EF to use stored procedures to persist changes to the database (FromSql already provides good support for using a stored procedure to query, see Raw SQL Queries for details).

1
2/24/2017 6:22:50 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow