Seeding
Namespace: SlottyMedia.DatabaseSeeding
This class represents the Seeding.
public class Seeding
Constructors
Seeding(Client, DaoHelper, DatabaseRepositroyHelper)
This is the constructor for the Seeding class.
public Seeding(Client client, DaoHelper daoHelper, DatabaseRepositroyHelper databaseRepositroyHelper)
Parameters
client Client
The Supabase client.
daoHelper DaoHelper
The DAO helper instance.
databaseRepositroyHelper DatabaseRepositroyHelper
The database repository helper instance.
Methods
Seed()
This method seeds the database with random data.
public Task Seed()
Returns
Exceptions
T:SlottyMedia.Database.Exceptions.GeneralDatabaseException
Thrown when an unexpected error occurs.
DatabaseSeedingRepositoryCreationFailed
Thrown when repository creation fails.
DatabaseSeedingUserDosentContainProfilePic
Thrown when a user does not contain a profile pic.
T:SlottyMedia.Database.Exceptions.DatabaseIudActionException
Thrown when an error occurs while deleting the entity.
T:SlottyMedia.Database.Exceptions.DatabaseMissingItemException
Thrown when the entity is not found in the database.