Class AuthDbContextFactory
- Namespace
- KadicAuth.Infrastructure
- Assembly
- KadicAuth.Infrastructure.dll
Design-time factory used by the EF Core tooling (dotnet ef migrations / database update). It supplies the connection string from appsettings.Local.json (or appsettings.Development.json) and provides a no-op ITenantIdContext so the DbContext constructor is satisfied without the full DI container being available at design time.
public sealed class AuthDbContextFactory
- Inheritance
-
objectAuthDbContextFactory
Methods
CreateDbContext(string[])
Creates a new instance of a derived context.
public AuthDbContext CreateDbContext(string[] args)
Parameters
argsstring[]Arguments provided by the design-time service.
Returns
- AuthDbContext
An instance of AuthDbContext.