MigrateDatabaseToLatestVersion<TContext, TMigrationsConfiguration> Constructor

 
Namespace:   System.Data.Entity
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodMigrateDatabaseToLatestVersion<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

System_CAPS_pubmethodMigrateDatabaseToLatestVersion<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.

System_CAPS_pubmethodMigrateDatabaseToLatestVersion<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.

System_CAPS_pubmethodMigrateDatabaseToLatestVersion<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

public MigrateDatabaseToLatestVersion()

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.

public MigrateDatabaseToLatestVersion(
	bool useSuppliedContext
)

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.

public MigrateDatabaseToLatestVersion(
	string connectionStringName
)

Parameters

connectionStringName
Type: System.String

The name of the connection string to use for migration.