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