Core Project
This is when you define your contract like Domain entities and Interfacies .
This should never be dependant to any projectInfrastructure Project
This layer hold the dbcontext ,respository, services, migration, extensions , configs etc. In here, we define database access (typically in the shape of repositories), integrations with other network services, caches, etc. This project/layer contains the physical implementation of the interfaces defined in our Core project
This is dependant to Core Project onlyPresentaion Project
This is where you RestAPI and Angular(ClientApp) is defined
This is dependant to Infrastructure Project- Any .Net IDEA Visual Studio, Rader or Visual Studio code
- .NET Core SDK
- NodeJs (LTS v12.18.4)
- Angular CLI
when you run project the 1st time it will download node packages defined in TechNinjaz.DigiMenu.Presentation/ClientApp/package.json
command
- add
dotnet ef migrations add newMigrationName -p TechNinjaz.DigiMenu.Infrastructure -s TechNinjaz.DigiMenu.Presentation - create script
dotnet ef migrations script newMigrationName -p TechNinjaz.DigiMenu.Infrastructure -s TechNinjaz.DigiMenu.Presentation - apply changes to db
dotnet ef database update -p TechNinjaz.DigiMenu.Infrastructure -s TechNinjaz.DigiMenu.Presentation
currently we using SQLite so we need to drop all migrations/db and add them when changing new db model. you can use anther db but just update
StartupExtension.AddDefaultDatabaseContextDesignTimeContextFactory