dotnet / dotnet/EntityFramework.Docs
Add example to script sql statements for dotnet-ef database update
- Dominant language
- Mermaid
- Stars
- 1.7k
- Forks
- 2k
- Avg merge
- 7d 23h
- Merged PRs (30d)
- 16
Description
As per StackOverflow post ['how-to-get-the-database-update-script-from-the-last-migration'](https://stackoverflow.com/questions/42586235/how-to-get-the-database-update-script-from-the-last-migration):
Please add an example to the [ef docs](https://docs.microsoft.com/en-us/ef/core/cli/dotnet#dotnet-ef-database-update) on how to generated SQL file of the migration that would ocour for
```
dotnet ef migrations script -from (MigrationYouWant-1) -to MigrationYouWant
```
or provide a link to the [EF Core tools CLI Ref page](https://docs.microsoft.com/en-us/ef/core/cli/dotnet#dotnet-ef-migrations-script)
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: 4d1bdeea-0ebc-04ff-5b58-1020ad9cd72a
* Version Independent ID: 847fe92a-2940-afbf-b2ee-e68f8a8060be
* Content: [EF Core tools reference (.NET CLI) - EF Core](https://docs.microsoft.com/en-us/ef/core/cli/dotnet#dotnet-ef-migrations-add)
* Content Source: [entity-framework/core/cli/dotnet.md](https://github.com/dotnet/EntityFramework.Docs/blob/main/entity-framework/core/cli/dotnet.md)
* Product: **entity-framework**
* Technology: **entity-framework-core**
* GitHub Login: @bricelam
* Microsoft Alias: **avickers**
Contributor guide
Assessment
This issue has not been assessed yet.