Tag: <span>EF Core</span>

Last month, I explained how we had achieved a significant performance improvement by using Dapper to pull the data from the database, rather than using EF Core.

Whilst showing this to a colleague, he reminded me that EF Core has a FromSqlRaw method that does pretty much the same thing. Assuming that EF Core would be slower than Dapper, I didn’t give it much thought at the time. However, being a compulsive tinkerer, I decided to take a closer look.

This post explains my findings, and what I did with them

Being fairly new with EF Core, I am still discovering solutions to problems that I solved long ago with database-first development.

Today I found out how to add a non-nullable foreign key reference to a new table.