mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-24 17:24:14 -05:00
* cleanup dacfx nullable warnings * use operation's SqlTask * remove unneccesary variables
56 lines
1.6 KiB
C#
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");
|
|
}
|
|
}
|
|
|
|
|
|
|