Class OpenModMySqlDbContextFactory<TDbContext>
Boilerplate code for design time context factories. Must be implemented to support EF Core commands.
Inheritance
System.Object
OpenModMySqlDbContextFactory<TDbContext>
Assembly: OpenMod.EntityFrameworkCore.MySql.dll
Syntax
public abstract class OpenModMySqlDbContextFactory<TDbContext> : IDesignTimeDbContextFactory<TDbContext> where TDbContext : OpenModDbContext<TDbContext>
Type Parameters
Name |
Description |
TDbContext |
The DbContext the factory is for.
|
Examples
public class MyDbContextFactory : OpenModMySqlDbContextFactory<MyDbContext>
{
// that's all needed
}
Methods
|
Improve this Doc
View Source
CreateDbContext(String[])
Declaration
public TDbContext CreateDbContext(string[] args)
Parameters
Type |
Name |
Description |
System.String[] |
args |
|
Returns
Type |
Description |
TDbContext |
|
Extension Methods