MigrateDatabaseToLatestVersion<TContext, TMigrationsConfiguration> Constructor
Initializes a new instance of the MigrateDatabaseToLatestVersion<TContext, TMigrationsConfiguration> class.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | MigrateDatabaseToLatestVersion<TContext, TMigrationsConfiguration>() | Initializes a new instance of the MigrateDatabaseToLatestVersion class that will use the connection information from a context constructed using the default constructor or registered factory if applicable |
![]() | MigrateDatabaseToLatestVersion<TContext, TMigrationsConfiguration>(Boolean) | Initializes a new instance of the MigrateDatabaseToLatestVersion class specifying whether to use the connection information from the context that triggered initialization to perform the migration. |
![]() | MigrateDatabaseToLatestVersion<TContext, TMigrationsConfiguration>(Boolean, TMigrationsConfiguration) | Initializes a new instance of the MigrateDatabaseToLatestVersion class specifying whether to use the connection information from the context that triggered initialization to perform the migration. Also allows specifying migrations configuration to use during initialization. |
![]() | MigrateDatabaseToLatestVersion<TContext, TMigrationsConfiguration>(String) | Initializes a new instance of the MigrateDatabaseToLatestVersion class that will use a specific connection string from the configuration file to connect to the database to perform the migration. |
MigrateDatabaseToLatestVersion<TContext, TMigrationsConfiguration> Constructor ()
Initializes a new instance of the MigrateDatabaseToLatestVersion class that will use the connection information from a context constructed using the default constructor or registered factory if applicable
MigrateDatabaseToLatestVersion<TContext, TMigrationsConfiguration> Constructor (Boolean)
Initializes a new instance of the MigrateDatabaseToLatestVersion class specifying whether to use the connection information from the context that triggered initialization to perform the migration.
Parameters
- useSuppliedContext
-
Type:
System.Boolean
If set to true the initializer is run using the connection information from the context that triggered initialization. Otherwise, the connection information will be taken from a context constructed using the default constructor or registered factory if applicable.
MigrateDatabaseToLatestVersion<TContext, TMigrationsConfiguration> Constructor (Boolean, TMigrationsConfiguration)
Initializes a new instance of the MigrateDatabaseToLatestVersion class specifying whether to use the connection information from the context that triggered initialization to perform the migration. Also allows specifying migrations configuration to use during initialization.
public MigrateDatabaseToLatestVersion( bool useSuppliedContext, TMigrationsConfiguration configuration )
Parameters
- useSuppliedContext
-
Type:
System.Boolean
If set to true the initializer is run using the connection information from the context that triggered initialization. Otherwise, the connection information will be taken from a context constructed using the default constructor or registered factory if applicable.
- configuration
-
Type:
TMigrationsConfiguration
Migrations configuration to use during initialization.
MigrateDatabaseToLatestVersion<TContext, TMigrationsConfiguration> Constructor (String)
Initializes a new instance of the MigrateDatabaseToLatestVersion class that will use a specific connection string from the configuration file to connect to the database to perform the migration.
Parameters
- connectionStringName
-
Type:
System.String
The name of the connection string to use for migration.