Class OEMSDBContextFactory
Factory class for creating instances of the OEMSDBContext Used for EF Core migrations and design-time tools
Implements
Inherited Members
Namespace: OEMS.Core.Infrastructure
Assembly: OEMS.Core.dll
Syntax
public class OEMSDBContextFactory : IDesignTimeDbContextFactory<OEMSDBContext>
Methods
CreateDbContext(string[])
Creates a new DbContext instance for migrations and design-time tools
Declaration
public OEMSDBContext CreateDbContext(string[] args)
Parameters
Type | Name | Description |
---|---|---|
string[] | args | Command line arguments |
Returns
Type | Description |
---|---|
OEMSDBContext | New OEMSDBContext instance |