Namespace mobisim.Database
Classes
class
DatabaseConnectorSingleton gateway to the SQLite database, providing lazily created typed repositories for each entity type used in the application.
class
SQLiteContextSQLite implementation of IDatabaseContext for use in Unity. Supports both persistent and in-memory databases depending on the platform.
A concrete implementation of IRepository that uses an IDatabaseContext to persist and retrieve entities. Assumes that entities implement IPrimaryKey with an integer key.
Interfaces
interface
IDatabaseContextRepresents a generic database context that provides CRUD operations.
interface
IPrimaryKey<T>Defines a contract for entities that have a primary key of a specific type.
interface
IRepository<T>Generic repository interface defining basic CRUD operations for a specific entity type.