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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework