DbMigrationsConfiguration Class
Entity Framework 5.0
Configuration relating to the use of migrations for a given model. You will typically create a configuration class that derives from DbMigrationsConfiguration(Of TContext) rather than using this class.
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 type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | DbMigrationsConfiguration | Initializes a new instance of the DbMigrationsConfiguration 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. |
![]() | AutomaticMigrationsEnabled | Gets or sets a value indicating if automatic migrations can be used when migration the database. |
![]() | CodeGenerator | Gets or sets the code generator to be used when scaffolding migrations. |
![]() | 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. |
![]() | ContextType | Gets or sets the derived DbContext representing the model to be migrated. |
![]() | MigrationsAssembly | Gets or sets the assembly containing code-based migrations. |
![]() | MigrationsDirectory | Gets or sets the sub-directory that code-based migrations are stored in. |
![]() | MigrationsNamespace | Gets or sets the namespace used for code-based migrations. |
![]() | TargetDatabase | Gets or sets a value to override the connection of the database to be migrated. |
| Name | Description | |
|---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetSqlGenerator | Gets the SQL generator that is set to be used with a given database provider. |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | SetSqlGenerator | Adds a new SQL generator to be used for a given database provider. |
![]() | ToString | (Inherited from Object.) |
Show:
