From b6b3a58e3905b9ec02d39b25e97967d63f2aa92a Mon Sep 17 00:00:00 2001 From: Aasim Khan Date: Wed, 15 Jan 2025 08:05:27 -0800 Subject: [PATCH] Fixing property names (#2437) --- .../TableDesigner/Contracts/TableDesignerView.cs | 2 +- .../TableDesigner/Contracts/ViewModel/TableViewModel.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.SqlTools.SqlCore/TableDesigner/Contracts/TableDesignerView.cs b/src/Microsoft.SqlTools.SqlCore/TableDesigner/Contracts/TableDesignerView.cs index d5b1d4de5e..7ff076a4d1 100644 --- a/src/Microsoft.SqlTools.SqlCore/TableDesigner/Contracts/TableDesignerView.cs +++ b/src/Microsoft.SqlTools.SqlCore/TableDesigner/Contracts/TableDesignerView.cs @@ -69,7 +69,7 @@ public class DesignerTabView { [DataMember(Name = "title")] public string Title { get; set; } - [DataMember(Name = "properties")] + [DataMember(Name = "components")] public List Components { get; } = new List(); } } \ No newline at end of file diff --git a/src/Microsoft.SqlTools.SqlCore/TableDesigner/Contracts/ViewModel/TableViewModel.cs b/src/Microsoft.SqlTools.SqlCore/TableDesigner/Contracts/ViewModel/TableViewModel.cs index 50cfb9dae9..93ff15619c 100644 --- a/src/Microsoft.SqlTools.SqlCore/TableDesigner/Contracts/ViewModel/TableViewModel.cs +++ b/src/Microsoft.SqlTools.SqlCore/TableDesigner/Contracts/ViewModel/TableViewModel.cs @@ -44,7 +44,7 @@ public class TableViewModel : ObjectViewModelBase public TableComponentProperties ForeignKeys { get; set; } = new TableComponentProperties(); [DataMember(Name = "checkConstraints")] public TableComponentProperties CheckConstraints { get; set; } = new TableComponentProperties(); - [DataMember(Name = "uniqueConstraints")] + [DataMember(Name = "edgeConstraints")] public TableComponentProperties EdgeConstraints { get; set; } = new TableComponentProperties(); [DataMember(Name = "indexes")] public TableComponentProperties Indexes { get; set; } = new TableComponentProperties();