- Class AProduct is configured mostly with 'data annotations'
- Class BProduct is configured only within the 'modelBuilder' in AppDbContext.OnModelCreating
- This application needs a local SqlServer-Database.
-
Use 'DOCKER compose up --detach' to create a local SqlServer instance.
-
Use 'EFCore Migrations' to create a valid database:
-- with 'ef migrations database update' in EFCore Tools
-- or 'update-database' in the Package Manager Console