Show file location for dacfx extract and export (#936)

* show file location for dacfx extract and export

* Add TargetDestination field to TaskInfo

* remove setting database and server name to null if there's packageFilePath

* remove unnecessary parameter
This commit is contained in:
Kim Santiago
2020-04-27 17:37:08 -07:00
committed by GitHub
parent bcc1f2a486
commit 314627f83c
4 changed files with 16 additions and 2 deletions

View File

@@ -227,7 +227,9 @@ namespace Microsoft.SqlTools.ServiceLayer.DacFx
{
try
{
TaskMetadata metadata = TaskMetadata.Create(parameters, taskName, operation, ConnectionServiceInstance);
// show file location for export and extract operations
string targetLocation = (operation is ExportOperation || operation is ExtractOperation) ? parameters.PackageFilePath : null;
TaskMetadata metadata = TaskMetadata.Create(parameters, taskName, operation, ConnectionServiceInstance, targetLocation);
// put appropriate database name since connection passed was to master
metadata.DatabaseName = parameters.DatabaseName;