DbMigrationsConfiguration.GetHistoryContextFactory(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Entity Framework