Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Command Update-Database -Context "IdentityDbContext" Doesn't Create Tables

I have a previous created project from "ASP.NET Core: Security" LinkedIn Learn Course (https://1drv.ms/u/s!Ap1TSQ4qoVyxgrImtb6ZFwZXQGW2BA) and in this project already exists the Migrations Migrations Folder Screenshot folder that represents the objects that will be create in data base when executed the command Update-Database -Context "IdentityDbContext". The problem Is that when I execute the command in Package Manager Console I have no return and the data base is not created.

I tried to update the project to .net 2.2. I also tried with another database.

The entire project is here: https://1drv.ms/u/s!Ap1TSQ4qoVyxgrImtb6ZFwZXQGW2BA

I have no error or feedback from visual studio when the command is executed. No return from command's execution image

like image 587
Gustavo Lemos Avatar asked Dec 14 '25 14:12

Gustavo Lemos


1 Answers

I ran dotnet --list-sdks and realized that I didn't have .NET Core SDK 1.1 installed in my machine.

I Installed it and ran Update-Database -Context "IdentityDbContext" again with success.

like image 174
Gustavo Lemos Avatar answered Dec 17 '25 07:12

Gustavo Lemos