Export (0) Print
Expand All

System.Data.Entity.Migrations.History Namespace

[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]

The System.Data.Entity.Migrations.History namespace provides classes used by Code First Migrations to read and write migration history from the database.

  ClassDescription
Public classHistoryContextThis class is used by Code First Migrations to read and write migration history from the database. To customize the definition of the migrations history table you can derive from this class and override OnModelCreating. Derived instances can either be registered on a per migrations configuration basis using SetHistoryContextFactory(String, Func<DbConnection, String, HistoryContext>), or globally using SetDefaultHistoryContext(Func<DbConnection, String, HistoryContext>).
Public classHistoryRowThis class is used by Code First Migrations to read and write migration history from the database.
Show:
© 2014 Microsoft