MigrateDatabaseToLatestVersion<TContext, TMigrationsConfiguration> Constructor (Boolean)

[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.]

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.

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

Syntax

'Declaration
Public Sub New ( _
    useSuppliedContext As Boolean _
)
'Usage
Dim useSuppliedContext As Boolean 

Dim instance As New MigrateDatabaseToLatestVersion(useSuppliedContext)
public MigrateDatabaseToLatestVersion(
    bool useSuppliedContext
)
public:
MigrateDatabaseToLatestVersion(
    bool useSuppliedContext
)
new : 
        useSuppliedContext:bool -> MigrateDatabaseToLatestVersion
public function MigrateDatabaseToLatestVersion(
    useSuppliedContext : boolean
)

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.

See Also

Reference

MigrateDatabaseToLatestVersion<TContext, TMigrationsConfiguration> Class

MigrateDatabaseToLatestVersion<TContext, TMigrationsConfiguration> Overload

System.Data.Entity Namespace