Files
sqltoolsservice/src/Microsoft.SqlTools.ServiceLayer/DacFx/Contracts/SavePublishProfileRequest.cs
Kim Santiago fd0f962056 Fix DacFx nullable warnings (#2099)
* cleanup dacfx nullable warnings

* use operation's SqlTask

* remove unneccesary variables
2023-06-12 10:50:08 -10:00

56 lines
1.6 KiB
C#

//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
#nullable disable
using System.Collections.Generic;
using Microsoft.SqlTools.Hosting.Protocol.Contracts;
using Microsoft.SqlTools.ServiceLayer.Utility;
namespace Microsoft.SqlTools.ServiceLayer.DacFx.Contracts
{
/// <summary>
/// Parameters for a DacFx save publish profile request.
/// </summary>
public class SavePublishProfileParams
{
/// <summary>
/// Gets or sets the profile path
/// </summary>
public string ProfilePath { get; set; }
/// <summary>
/// Gets or sets name for database
/// </summary>
public string DatabaseName { get; set; }
/// <summary>
/// Gets or sets target connection string
/// </summary>
public string ConnectionString { get; set; }
/// <summary>
/// Gets or sets SQLCMD variables for deployment
/// </summary>
public IDictionary<string, string> SqlCommandVariableValues { get; set; }
/// <summary>
/// Gets or sets the options for deployment
/// </summary>
public DeploymentOptions DeploymentOptions { get; set; }
}
/// <summary>
/// Defines the DacFx save publish profile request type
/// </summary>
class SavePublishProfileRequest
{
public static readonly RequestType<SavePublishProfileParams, ResultStatus> Type =
RequestType<SavePublishProfileParams, ResultStatus>.Create("dacfx/savePublishProfile");
}
}