Add create model request (#1603)

* add create model request
This commit is contained in:
Barbara Valdez
2022-07-29 12:04:16 -07:00
committed by GitHub
parent 8eedac2b82
commit 11dd29d8a0
4 changed files with 222 additions and 1 deletions

View File

@@ -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 Microsoft.SqlTools.Hosting.Protocol.Contracts;
using Microsoft.SqlTools.ServiceLayer.Utility;
namespace Microsoft.SqlTools.ServiceLayer.DacFx.Contracts
{
/// <summary>
/// Parameters to generate a SQL model
/// </summary>
public class GenerateTSqlModelParams
{
/// <summary>
/// URI of the project file this model is for
/// </summary>
public string ProjectUri { get; set; }
/// <summary>
/// The version of Sql Server to target
/// </summary>
public string ModelTargetVersion { get; set; }
/// <summary>
/// Gets or sets the Sql script file paths.
/// </summary>
public string[] FilePaths { get; set; }
}
/// <summary>
/// Defines the generate sql model request
/// </summary>
class GenerateTSqlModelRequest
{
public static readonly RequestType<GenerateTSqlModelParams, ResultStatus> Type =
RequestType<GenerateTSqlModelParams, ResultStatus>.Create("dacFx/generateTSqlModel");
}
}