Files
AdamuSw/src/Persistence/Initialization
sven-n b854565586 Merge pull request #834 from eduardosmaniotto/bugfix/duplicate-rows
fix: duplicate rows in deserialized aggregate collections
(cherry picked from commit f95498770ea1af30530a164f868f571ec30052b5)
2026-07-23 11:38:09 +03:00
..

Intialization

This sub-project is about initializing the default data so the server is ready to start. Currently, it also creates 10 accounts for testing.

The state of this sub-project is probably pretty messy and very incomplete, so please don't wonder.

The initialization code is called by the a migration of entity framework core. However, it's independent from it, so if we ever want to switch it's reuseable.

It's tested by an integration test in the corresponding Test-project. The test runs the initialization on a real database instance and tries to load the game configuration and one of the created accounts.