DbMigrationsConfiguration.GetHistoryContextFactory Method (String)

 

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

Namespace:   System.Data.Entity.Migrations
Assembly:  EntityFramework (in EntityFramework.dll)

public Func<DbConnection, string, HistoryContext> GetHistoryContextFactory(
	string providerInvariantName
)

Parameters

providerInvariantName
Type: System.String

Name of the database provider to get thefactory for.

Return Value

Type: System.Func<DbConnection, String, HistoryContext>

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