add table designer handlers (#1269)

* add table designer handlers

* add comments
This commit is contained in:
Alan Ren
2021-10-14 13:39:55 -07:00
committed by GitHub
parent 4f12820757
commit 791c3594a9
19 changed files with 557 additions and 2 deletions

View File

@@ -0,0 +1,34 @@
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace Microsoft.SqlTools.ServiceLayer.TableDesigner.Contracts
{
[JsonConverter(typeof(StringEnumConverter))]
public enum DesignerEditType
{
[EnumMember(Value = "Add")]
Add,
[EnumMember(Value = "Remove")]
Remove,
[EnumMember(Value = "Update")]
Update,
}
/// <summary>
/// The information about a change made inside the table designer.
/// </summary>
public class TableDesignerChangeInfo
{
public DesignerEditType Type { get; set; }
public object Property { get; set; }
public object Value { get; set; }
}
}