mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-03 17:24:53 -05:00
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:
@@ -41,6 +41,11 @@ namespace Microsoft.SqlTools.ServiceLayer.TaskServices
|
||||
/// </summary>
|
||||
public string DatabaseName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Target location of this task
|
||||
/// </summary>
|
||||
public string TargetLocation { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Data required to perform the task
|
||||
/// </summary>
|
||||
@@ -59,7 +64,7 @@ namespace Microsoft.SqlTools.ServiceLayer.TaskServices
|
||||
/// <param name="taskOperation">Task operation</param>
|
||||
/// <param name="connectionService">Connection Service</param>
|
||||
/// <returns>Task metadata</returns>
|
||||
public static TaskMetadata Create(IRequestParams requestParam, string taskName, ITaskOperation taskOperation, ConnectionService connectionService)
|
||||
public static TaskMetadata Create(IRequestParams requestParam, string taskName, ITaskOperation taskOperation, ConnectionService connectionService, string targetLocation = null)
|
||||
{
|
||||
TaskMetadata taskMetadata = new TaskMetadata();
|
||||
ConnectionInfo connInfo;
|
||||
@@ -90,6 +95,7 @@ namespace Microsoft.SqlTools.ServiceLayer.TaskServices
|
||||
|
||||
taskMetadata.TaskOperation = taskOperation;
|
||||
taskMetadata.OwnerUri = requestParam.OwnerUri;
|
||||
taskMetadata.TargetLocation = targetLocation;
|
||||
|
||||
return taskMetadata;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user