mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-01 09:35:39 -05:00
Add support for getting DacFx deploy options from a publish profile (#995)
* add support for getting options from a publish profile * update comments * set values for default options if they aren't specified in the publish profile * addressing comments
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
//
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
//
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.SqlTools.Hosting.Protocol.Contracts;
|
||||
using Microsoft.SqlTools.ServiceLayer.SchemaCompare.Contracts;
|
||||
using Microsoft.SqlTools.ServiceLayer.Utility;
|
||||
|
||||
namespace Microsoft.SqlTools.ServiceLayer.DacFx.Contracts
|
||||
{
|
||||
/// <summary>
|
||||
/// Parameters for a DacFx get options from profile request.
|
||||
/// </summary>
|
||||
public class GetOptionsFromProfileParams
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the profile path
|
||||
/// </summary>
|
||||
public string ProfilePath { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Parameters returned from a DacFx get options from profile request.
|
||||
/// </summary>
|
||||
public class DacFxOptionsResult : ResultStatus
|
||||
{
|
||||
public DeploymentOptions DeploymentOptions { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Defines the DacFx get options from profile request type
|
||||
/// </summary>
|
||||
class GetOptionsFromProfileRequest
|
||||
{
|
||||
public static readonly RequestType<GetOptionsFromProfileParams, DacFxOptionsResult> Type =
|
||||
RequestType<GetOptionsFromProfileParams, DacFxOptionsResult>.Create("dacfx/getOptionsFromProfile");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user