Files
sqltoolsservice/src/Microsoft.SqlTools.ServiceLayer/TableDesigner/Contracts/Requests/GeneratePreviewReportRequest.cs
Aditya Bist b1f494d04d Added uniqueness check for constraints (#1454)
* added rule for checking constraints

* added constraint validation rule

* merge PR's

* remove unused code

* update comment

* remove unused import
2022-04-08 12:52:24 -07:00

49 lines
1.4 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 System.Collections.Generic;
using Microsoft.SqlTools.Hosting.Protocol.Contracts;
namespace Microsoft.SqlTools.ServiceLayer.TableDesigner.Contracts
{
/// <summary>
/// The service request to generate preview report describing the changes.
/// </summary>
public class GeneratePreviewReportResult
{
/// <summary>
/// The report generated for publish preview
/// </summary>
public string Report;
/// <summary>
/// format (mimetype) of the string
/// </summary>
public string MimeType;
/// <summary>
/// Metadata about the table
/// </summary>
public Dictionary<string, string> Metadata { get; set; }
/// <summary>
/// The table schema validation error
/// </summary>
public string SchemaValidationError { get; set; }
}
/// <summary>
/// The service request to generate preview report describing the changes.
/// </summary>
public class GeneratePreviewReportRequest
{
/// <summary>
/// Request definition
/// </summary>
public static readonly RequestType<TableInfo, GeneratePreviewReportResult> Type = RequestType<TableInfo, GeneratePreviewReportResult>.Create("tabledesigner/generatepreviewreport");
}
}