Class NLightningContextFactory
- Namespace
- NLightning.Infrastructure.Persistence.Factories
- Assembly
- NLightning.Infrastructure.Persistence.dll
This is used for dotnet ef CLI to set up connection for migration stuff
public class NLightningContextFactory : IDesignTimeDbContextFactory<NLightningDbContext>
- Inheritance
-
NLightningContextFactory
- Implements
- Inherited Members
Methods
CreateDbContext(string[])
Creates a new instance of a derived context.
public NLightningDbContext CreateDbContext(string[] args)
Parameters
args
string[]Arguments provided by the design-time service.
Returns
- NLightningDbContext
An instance of NLightningDbContext.