DbMigrationsConfiguration(Of TContext) Class
Entity Framework 5.0
Represents the configuration relating to the use of migrations for a given model.
System.Object
System.Data.Entity.Migrations.DbMigrationsConfiguration
System.Data.Entity.Migrations.DbMigrationsConfiguration(Of TContext)
System.Data.Entity.Migrations.DbMigrationsConfiguration
System.Data.Entity.Migrations.DbMigrationsConfiguration(Of TContext)
Namespace: System.Data.Entity.Migrations
Assembly: EntityFramework (in EntityFramework.dll)
The DbMigrationsConfiguration(Of TContext) type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | DbMigrationsConfiguration(Of TContext) | Initializes a new instance of the DbMigrationsConfiguration(Of TContext) class. |
| Name | Description | |
|---|---|---|
![]() | AutomaticMigrationDataLossAllowed | Gets or sets a value indicating if data loss is acceptable during automatic migration. If set to false an exception will be thrown if data loss may occur as part of an automatic migration. (Inherited from DbMigrationsConfiguration.) |
![]() | AutomaticMigrationsEnabled | Gets or sets a value indicating if automatic migrations can be used when migration the database. (Inherited from DbMigrationsConfiguration.) |
![]() | CodeGenerator | Gets or sets the code generator to be used when scaffolding migrations. (Inherited from DbMigrationsConfiguration.) |
![]() | CommandTimeout | Gets or sets the timeout value used for the individual commands within a migration. A null value indicates that the default value of the underlying provider will be used. (Inherited from DbMigrationsConfiguration.) |
![]() | ContextType | Gets or sets the derived DbContext representing the model to be migrated. (Inherited from DbMigrationsConfiguration.) |
![]() | MigrationsAssembly | Gets or sets the assembly containing code-based migrations. (Inherited from DbMigrationsConfiguration.) |
![]() | MigrationsDirectory | Gets or sets the sub-directory that code-based migrations are stored in. (Inherited from DbMigrationsConfiguration.) |
![]() | MigrationsNamespace | Gets or sets the namespace used for code-based migrations. (Inherited from DbMigrationsConfiguration.) |
![]() | TargetDatabase | Gets or sets a value to override the connection of the database to be migrated. (Inherited from DbMigrationsConfiguration.) |
| Name | Description | |
|---|---|---|
![]() | Equals | Returns a value indicating whether this instance is equal to a specified object. (Overrides Object.Equals(Object).) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | Gets the data, for a parameter or column, as the specified type. (Overrides Object.GetHashCode.) |
![]() | GetSqlGenerator | Gets the SQL generator that is set to be used with a given database provider. (Inherited from DbMigrationsConfiguration.) |
![]() | GetType | Returns the runtime type of the current instance. |
![]() | MemberwiseClone | Creates a shallow copy of the current object. |
![]() | Seed | Runs after upgrading to the latest migration to allow seed data to be updated. |
![]() | SetSqlGenerator | Adds a new SQL generator to be used for a given database provider. (Inherited from DbMigrationsConfiguration.) |
![]() | ToString | Returns a string that represents the current object. (Overrides Object.ToString.) |
Show:
