mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-14 01:25:40 -05:00
* initial commit * Initial SqlProjects service + tests * Added SqlObject script tests; PR feedback * Added comments for contracts * Swapping SqlProjectResult for ResultStatus * Updating tests * Added automatic test base that provides a working directory and automatic cleanup.
40 lines
1.3 KiB
C#
40 lines
1.3 KiB
C#
//
|
|
// Copyright (c) Microsoft. All rights reserved.
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
//
|
|
|
|
using Microsoft.SqlServer.Dac.Projects;
|
|
using Microsoft.SqlTools.Hosting.Protocol.Contracts;
|
|
using Microsoft.SqlTools.ServiceLayer.Utility;
|
|
|
|
namespace Microsoft.SqlTools.ServiceLayer.SqlProjects.Contracts
|
|
{
|
|
/// <summary>
|
|
/// Parameters for creating a new SQL Project
|
|
/// </summary>
|
|
public class NewSqlProjectParams : SqlProjectParams
|
|
{
|
|
/// <summary>
|
|
/// Type of SQL Project: SDK-style or Legacy
|
|
/// </summary>
|
|
public ProjectType SqlProjectType { get; set; }
|
|
|
|
/// <summary>
|
|
/// Database schema provider for the project, in the format
|
|
/// "Microsoft.Data.Tools.Schema.Sql.SqlXYZDatabaseSchemaProvider".
|
|
/// Case sensitive.
|
|
/// </summary>
|
|
public string? DatabaseSchemaProvider { get; set; }
|
|
|
|
/// <summary>
|
|
/// Version of the Microsoft.Build.Sql SDK for the project, if overriding the default
|
|
/// </summary>
|
|
public string? BuildSdkVersion { get; set; }
|
|
}
|
|
|
|
public class NewSqlProjectRequest
|
|
{
|
|
public static readonly RequestType<NewSqlProjectParams, ResultStatus> Type = RequestType<NewSqlProjectParams, ResultStatus>.Create("sqlprojects/newProject");
|
|
}
|
|
}
|