EduardoPires / EquinoxProject

Full ASP.NET Core 6 application with DDD, CQRS and Event Sourcing concepts

Home Page:http://equinoxproject.azurewebsites.net/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Need migration commands to start with the projects

shubhamdhanetia opened this issue · comments

I created a database Equinox in SQL Server and updated the connection string in the appsettings.json file to

"DefaultConnection": "Server=localhost; Database=Equinox; Trusted_Connection=True; Persist Security Info=True;Connect Timeout=30"

Run the migration commands on two Context objects on the project Infra.Data

Add-Migration InitialMigration -c EquinoxContext
Add-Migration InitialMigration -c EventStoreSQLContext

Update-Database -c EquinoxContext
Update-Database -c EventStoreSQLContext

Those commands are properly executed. But when I open the database in SQLServer, I see no tables.

Am I missing something ?

If the update command was executed with success the tables need to be there. Did you checked the correct DB?