Generating Script and saving to a specific folder?

Asked

Viewed 26 times

0

Looking at an example of how Generate SQL scripts.

So I executed the following command:

PM> Script-Migration

The above command works fine, however I want to save in a specific folder, I tried that way:

PM> Script-Migration -OutputDir Areas/Identity/Data/Migrations/Script.sql

I get error:

Unable to locate a parameter matching the name of parameter 'Outputdir'.

Some solution ?

  • Try to use Add-Migration instead of Script-Migration. By the documentation command script does not accept the -OutputDir.

1 answer

0

You can get detailed information with command:

get-help Script-Migration -detailed

To generate script and save to a specific folder, run the following command:

Script-Migration -Output Project/Areas/Identity/Data/Script.sql

Browser other questions tagged

You are not signed in. Login or sign up in order to post.