Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace all double quotes (”) by a normal double quote character ("). #1903

Merged
merged 1 commit into from
Nov 6, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,39 +38,39 @@ The above will display the help page associated with this utility, note that you
## Migrate to the latest migration

``` console
Migrate.exe MyMvcApplication.dll /startupConfigurationFile=..\\web.config
Migrate.exe MyMvcApplication.dll /startupConfigurationFile="..\\web.config"
```

When running migrate.exe the only mandatory parameter is the assembly, which is the assembly that contains the migrations that you are trying to run, but it will use all convention based settings if you do not specify the configuration file.

## Migrate to a specific migration

``` console
Migrate.exe MyApp.exe /startupConfigurationFile=MyApp.exe.config /targetMigration=AddTitle
Migrate.exe MyApp.exe /startupConfigurationFile="MyApp.exe.config" /targetMigration="AddTitle"
```

If you want to run migrations up to a specific migration, then you can specify the name of the migration. This will run all previous migrations as required until getting to the migration specified.

## Specify working directory

``` console
Migrate.exe MyApp.exe /startupConfigurationFile=MyApp.exe.config /startupDirectory=c:\\MyApp
Migrate.exe MyApp.exe /startupConfigurationFile="MyApp.exe.config" /startupDirectory="c:\\MyApp"
```

If you assembly has dependencies or reads files relative to the working directory then you will need to set startupDirectory.

## Specify migration configuration to use

``` console
Migrate.exe MyAssembly CustomConfig /startupConfigurationFile=..\\web.config
Migrate.exe MyAssembly CustomConfig /startupConfigurationFile="..\\web.config"
```

If you have multiple migration configuration classes, classes inheriting from DbMigrationConfiguration, then you need to specify which is to be used for this execution. This is specified by providing the optional second parameter without a switch as above.

## Provide connection string

``` console
Migrate.exe BlogDemo.dll /connectionString=Data Source=localhost;Initial Catalog=BlogDemo;Integrated Security=SSPI /connectionProviderName=System.Data.SqlClient
Migrate.exe BlogDemo.dll /connectionString="Data Source=localhost;Initial Catalog=BlogDemo;Integrated Security=SSPI" /connectionProviderName="System.Data.SqlClient"
```

If you wish to specify a connection string at the command line then you must also provide the provider name. Not specifying the provider name will cause an exception.
Expand Down