EntityFramework.Docs
EntityFramework.Docs copied to clipboard
Document ef6.exe and remove doc for migrate.exe
@Almeonamy commented on Tue Sep 17 2019
The page has mistake. Meigrate.exe can generate sql script for migration. It has option "/scriptFile".
Сведения о документе
⚠ Не вносите правки в этот раздел. Это необходимо для связывания страницы сайта docs.microsoft.com с вопросом на GitHub.
- ID: 105c0f35-0426-b31e-c804-c45bbb0a6f48
- Version Independent ID: 0d3bdfd4-be64-3251-703e-7173d3b3c6eb
- Content: С помощью migrate.exe - EF6
- Content Source: entity-framework/ef6/modeling/code-first/migrations/migrate-exe.md
- Product: entity-framework
- Technology: entity-framework-6
- GitHub Login: @divega
- Microsoft Alias: divega
@srvbpigh commented on Tue Sep 17 2019
Hello, @Almeonamy
Thank you for your feedback.
We are actively reviewing your comments and will get back to you soon.
Kind regards, Microsoft DOCS International Team
Hi team, I moved this here because the user made a sugggestion on the original documentation best
The page needs to go away.
Geez guys. Trying to learn EF6 migrations is confusing enough without me wasting time trying to work with the documentation and it doesn't work because the docs are SIX YEARS out of date. Shows what kind of priority MS places to documentation.
| migrate.exe | ef6.exe database update |
|---|---|
| <assembly> | --assembly |
| <configurationType> | --migrations-config |
| <contextAssembly> | (no equivalent. Ensure it's in the same directory as --assembly) |
| /targetMigration | --target |
| /startUpDirectory | --project-dir |
| /scriptFile | --script |
| /sourceMigration | --source |
| /startUpConfigurationFile | --config |
| /startUpDataDirectory | --data-dir |
| /connectionStringName | --connection-string-name |
| /connectionString | --connection-string |
| /connectionProviderName | --connection-provider |
| /force | --force |
| /verbose | --verbose |
| /? | --help |
Hi guys! How can I execute ef6.exe as a different user? I mean, I need to specify the user and password that will implement the update in the remote database. Any idea would be very welcome! Thank you!
For anyone not able to find ef6.exe look in the NuGet package cache, for example %userprofile%\.nuget\packages\entityframework\6.4.4\tools\net45\win-x86