Database

Parent namespace: Backend

Classes

TypeDescription
DatabaseSeederThe DatabaseSeeder class is responsible for seeding the database with initial data and ensuring that certain essential settings and groups exist when the application starts. It implements the IHostedService interface, allowing it to run as a background service during the application's startup process. The seeder checks for the existence of specific settings and groups, creating them if they do not already exist, and also ensures that a backup board account is created if there are no existing board members. This helps to ensure that the application has the necessary configuration and data in place for proper functionality from the moment it is launched.
PostgresDbContextContains all information on the postgresql database, for the object-database mapping. This allows using C# to run SQL queries on the database.