Share via


DbMigrationsConfiguration.GetHistoryContextFactory(String) Method

Definition

Gets the history context factory that is set to be used with a given database provider.

public Func<System.Data.Common.DbConnection,string,System.Data.Entity.Migrations.History.HistoryContext> GetHistoryContextFactory (string providerInvariantName);
member this.GetHistoryContextFactory : string -> Func<System.Data.Common.DbConnection, string, System.Data.Entity.Migrations.History.HistoryContext>
Public Function GetHistoryContextFactory (providerInvariantName As String) As Func(Of DbConnection, String, HistoryContext)

Parameters

providerInvariantName
String

Name of the database provider to get thefactory for.

Returns

The history context factory that is set for the database provider.

Applies to