Search

Showing posts tagged EF Core.

MissingMethodException when adding a migration in EF Core

MissingMethodException when adding a migration in EF Core

I have a Blazor app that I've been developing for a while, and wanted to add a migration. Done this plenty of times before, so didn't expect anything unusual.

Instead of the usual success, I saw the following exception... The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: System.Management.Automation.RemoteException.

No, I didn't know what that meant either! Now I do, and if you read my ramblings, you will as well.

Hmm, maybe EF Core isn't so bad after all!

Hmm, maybe EF Core isn't so bad after all!

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