Entityframework.docs: Example for 'migrations script' from and to options

Created on 5 Jul 2019  Â·  6Comments  Â·  Source: dotnet/EntityFramework.Docs

It will be helpful to include a 'from' and 'to' example for the migration script generation.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

area-migrations closed-fixed

Most helpful comment

Script-Database -From 2397823293-migration-to-add-tables -To 298239823-migration-to-add-more-tables

All 6 comments

Script-Database -From 2397823293-migration-to-add-tables -To 298239823-migration-to-add-more-tables

Script-Migration -From 2397823293-migration-to-add-tables -To 298239823-migration-to-add-more-tables

@sachinch1216

Unrecognized option '-from'

dotnet ef migrations script -from 20191107232753_InitialCreate --context ApplicationDbContext

Omit -from, they're positional arguments in dotnet ef (they are in Script-Migration too, it just lets you specify the parameter names too because PowerShell)

ah!

This was already done in 76970344219aa9c0a39e7815fd4289bb9b55cede.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

weitzhandler picture weitzhandler  Â·  4Comments

jaxidian picture jaxidian  Â·  4Comments

MohammadMQ picture MohammadMQ  Â·  3Comments

Praveen-Rai picture Praveen-Rai  Â·  4Comments

divega picture divega  Â·  3Comments