EF Core + Stored Procedures

 EF Core + Stored Procedures

I was querying legacy stored procedures and views that didn't map to my entities.

The EF Core raw SQL feature simplified the mapping aspect.

Instead of complex mappings, I now define a simple POCO class and write my SQL query.

It also solves SQL injection automatically through parameterization.





Comments