Tags

, ,


GET MIGRATIONS

SYNOPSIS

Displays the migrations that have been applied to the target database.

OPEN PACKAGE MANAGER CONSOLE in Visual Studio (TOOLS>Library Package Manager  > Package Manager Console)

SYNTAX

Get-Migrations

[-ProjectName <String>]

[-StartUpProjectName <String>]

[-ConfigurationTypeName <String>]

[-ConnectionStringName <String>]

[<CommonParameters>]

DESCRIPTION

Displays the migrations that have been applied to the target database.

PARAMETERS

-ProjectName <String>

Specifies the project that contains the migration configuration type to be used. If omitted, the default project selected in package manager console is used.

        Required?                    false

        Position?                    named

        Default value

        Accept pipeline input?       false

        Accept wildcard characters?

-StartUpProjectName <String>

Specifies the configuration file to use for named connection strings. If  omitted, the specified project’s configuration file is used.

        Required?                    false

        Position?                    named

        Default value

        Accept pipeline input?       false

        Accept wildcard characters?

    -ConfigurationTypeName <String>

Specifies the migrations configuration to use. If omitted, migrations will attempt to locate a single migrations configuration type in the target

        project.

        Required?                    false

        Position?                    named

        Default value

        Accept pipeline input?       false

        Accept wildcard characters?

    -ConnectionStringName <String>

Specifies the name of a connection string to use from the application’s  configuration file.

        Required?                    false

        Position?                    named

        Default value

        Accept pipeline input?       false

        Accept wildcard characters?

    -ConnectionString <String>

Specifies the the connection string to use. If omitted, the context’s default connection will be used.

        Required?                    true

        Position?                    named

        Default value

        Accept pipeline input?       false

        Accept wildcard characters?

    -ConnectionProviderName <String>

Specifies the provider invariant name of the connection string.

        Required?                    true

        Position?                    named

        Default value

        Accept pipeline input?       false

        Accept wildcard characters?

    <CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,  ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer and OutVariable. For more information, type,

 

 

 

 Enjoy!!

 

Advertisements