Month: October 2019
-
Unable to create object of type ‘ApplicationDbContext’ – Updating to .NET Core 3.0
Hi everyone, I’ve just updated to .net core 3.0 and have been hitting a few issues. I hit this one while trying to add a migration: Unable to create an object of type ‘ApplicationDbContext’. For the different patterns supported at design time, see https://go.microsoft.com/fwlink/?linkid=851728 Adding -verbose to this allowed me to narrow the cause down…
-
‘add-migration’ is not recognized as the name of a cmdlet – .net core 3.0
Hey everyone, I recently upgraded my .net core 2.2 project to .net core 3.0. When trying to add a migration I hit the following error: add-migration : The term ‘add-migration’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path…