Namespace FishMMO.Database.Npgsql
Namespaces
Classes
- DbContextExtensions
Extension methods for NpgsqlDbContext to provide dynamic table name resolution.
- NpgsqlDbConfiguration
Encapsulates validated Npgsql database configuration. Responsibility is limited to binding and validating a provided IConfiguration instance.
- NpgsqlDbContext
Entity Framework Core DbContext for the FishMMO PostgreSQL database.
- NpgsqlDbContextFactory
Factory for creating NpgsqlDbContext instances. Thread-safe and intended for singleton registration. Implements IDesignTimeDbContextFactory<TContext> for EF Core tooling.
- NpgsqlServiceRegistry
Service registry for Npgsql-based database services. Explicitly registers and owns the lifecycle of all Npgsql services. Thread-safe singleton-style registry (constructed once and then used concurrently).
- SchemaValidationResult
The outcome of comparing the database schema against the entity model.
Interfaces
- IDbContextFactory
Core factory interface for creating NpgsqlDbContext instances. Implementations must be thread-safe and create new contexts per call. DbContext instances are short-lived and should not be pooled.
- IDbContextFactoryMonitoring
Optional monitoring interface for database context factories. Provides access to connection pool metrics and query performance tracking.
- INpgsqlDbContextFactory
Combined factory interface for creating NpgsqlDbContext instances with full monitoring capabilities. Extends both IDbContextFactory for core functionality and IDbContextFactoryMonitoring for monitoring features.