HistoryContext Constructor (DbConnection, String)
Initializes a new instance of the HistoryContext class. If you are creating a derived history context you will generally expose a constructor that accepts these same parameters and passes them to this base constructor.
Assembly: EntityFramework (in EntityFramework.dll)
[SuppressMessageAttribute("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public HistoryContext( DbConnection existingConnection, string defaultSchema )
Parameters
- existingConnection
-
Type:
System.Data.Common.DbConnection
An existing connection to use for the new context.
- defaultSchema
-
Type:
System.String
The default schema of the model being migrated. This schema will be used for the migrations history table unless a different schema is configured in OnModelCreating.