- Ensure your connection string(appsettings.json).
- Migration Database : In development environment will drop and create new db then insert seed data, in production environment will migrate all migrations and insert seed data.
- Run BS.DemoShop.Web.
dotnet ef database update -p BS.DemoShop.Infrastructure -s BS.DemoShop.Web
dotnet ef migrations add <your migration name> -p BS.DemoShop.Infrastructure -s BS.DemoShop.Web -o Data/Migrations