Files
AdamuSw/src/Persistence/Initialization
Acentech Dev cc0b7abb44 feat(hs): add event NPC 560 and place it in Lorencia
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-20 23:15:52 +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.