Freigeben über


DbMigrationsConfiguration.GetHistoryContextFactory-Methode

[Diese Seite bezieht sich auf Entity Framework Version 6. Die neueste Version ist als 'Entity Framework' NuGet-Paket verfügbar. Weitere Informationen zu Entity Framework finden Sie unter msdn.com/data/ef.]

Ruft die Verlaufskontextfactory ab, die für einen angegebenen Datenbankanbieter verwendet werden soll.

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

Syntax

'Declaration
Public Function GetHistoryContextFactory ( _
    providerInvariantName As String _
) As Func(Of DbConnection, String, HistoryContext)
'Usage
Dim instance As DbMigrationsConfiguration 
Dim providerInvariantName As String 
Dim returnValue As Func(Of DbConnection, String, HistoryContext)

returnValue = instance.GetHistoryContextFactory(providerInvariantName)
public Func<DbConnection, string, HistoryContext> GetHistoryContextFactory(
    string providerInvariantName
)
public:
Func<DbConnection^, String^, HistoryContext^>^ GetHistoryContextFactory(
    String^ providerInvariantName
)
member GetHistoryContextFactory : 
        providerInvariantName:string -> Func<DbConnection, string, HistoryContext> 
public function GetHistoryContextFactory(
    providerInvariantName : String
) : Func<DbConnection, String, HistoryContext>

Parameter

  • providerInvariantName
    Typ: System.String
    Der Name des Datenbankanbieters, für den die Factory abgerufen werden soll.

Rückgabewert

Typ: System.Func<DbConnection, String, HistoryContext>
Der für den Datenbankanbieter festgelegte Verlaufskontextanbieter.

Siehe auch

Verweis

DbMigrationsConfiguration Klasse

System.Data.Entity.Migrations-Namespace