Class MySqlHistoryContext
This class is used by Code First Migrations to read and write migration history from the database.
Inheritance
System.Object
MySqlHistoryContext
Namespace: MySql.Data.EntityFramework
Assembly: MySql.Data.EntityFramework.dll
Version: 9.1.0
Syntax
public class MySqlHistoryContext : HistoryContext
Constructors
MySqlHistoryContext(DbConnection, String)
Declaration
public MySqlHistoryContext(DbConnection existingConnection, string defaultSchema)
Parameters
Type | Name | Description |
---|---|---|
System.Data.Common.DbConnection | existingConnection | |
System.String | defaultSchema |
Methods
OnModelCreating(Entity.DbModelBuilder)
Declaration
protected override void OnModelCreating(Entity.DbModelBuilder modelBuilder)
Parameters
Type | Name | Description |
---|---|---|
System.Data.Entity.DbModelBuilder | modelBuilder |