Class DesignTimePortalDbContextFactory
- Namespace
- SEBT.Portal.Infrastructure.Data
- Assembly
- SEBT.Portal.Infrastructure.dll
Design-time factory for PortalDbContext. Used by EF Core tooling (dotnet ef migrations) to create the DbContext without requiring the full application startup pipeline. This avoids issues with plugin loading, feature flags, and other runtime dependencies that are irrelevant to schema generation.
public class DesignTimePortalDbContextFactory
- Inheritance
-
objectDesignTimePortalDbContextFactory
Methods
CreateDbContext(string[])
Creates a new instance of a derived context.
public PortalDbContext CreateDbContext(string[] args)
Parameters
argsstring[]Arguments provided by the design-time service.
Returns
- PortalDbContext
An instance of PortalDbContext.