diff --git a/src/Microsoft.SqlTools.ServiceLayer/TableDesigner/Constants.cs b/src/Microsoft.SqlTools.ServiceLayer/TableDesigner/Constants.cs index da31be24..8459ae3f 100644 --- a/src/Microsoft.SqlTools.ServiceLayer/TableDesigner/Constants.cs +++ b/src/Microsoft.SqlTools.ServiceLayer/TableDesigner/Constants.cs @@ -27,5 +27,7 @@ namespace Microsoft.SqlTools.ServiceLayer.TableDesigner public const string Length = "length"; public const string AllowNulls = "allowNulls"; public const string IsPrimaryKey = "isPrimaryKey"; + public const string Precision = "precision"; + public const string Scale = "scale"; } } \ No newline at end of file diff --git a/src/Microsoft.SqlTools.ServiceLayer/TableDesigner/Contracts/DesignerDataPropertyInfo.cs b/src/Microsoft.SqlTools.ServiceLayer/TableDesigner/Contracts/DesignerDataPropertyInfo.cs index bdc6c9f1..d51225ca 100644 --- a/src/Microsoft.SqlTools.ServiceLayer/TableDesigner/Contracts/DesignerDataPropertyInfo.cs +++ b/src/Microsoft.SqlTools.ServiceLayer/TableDesigner/Contracts/DesignerDataPropertyInfo.cs @@ -15,6 +15,14 @@ namespace Microsoft.SqlTools.ServiceLayer.TableDesigner.Contracts /// public string PropertyName { get; set; } + /// + /// The description of the property + /// + public string Description { get; set; } + + /// + /// The component type of the property + /// public string ComponentType { get; set; } /// diff --git a/src/Microsoft.SqlTools.ServiceLayer/TableDesigner/Contracts/ViewModel/TableColumnViewModel.cs b/src/Microsoft.SqlTools.ServiceLayer/TableDesigner/Contracts/ViewModel/TableColumnViewModel.cs index a24c0a26..c5e35e68 100644 --- a/src/Microsoft.SqlTools.ServiceLayer/TableDesigner/Contracts/ViewModel/TableColumnViewModel.cs +++ b/src/Microsoft.SqlTools.ServiceLayer/TableDesigner/Contracts/ViewModel/TableColumnViewModel.cs @@ -16,6 +16,10 @@ namespace Microsoft.SqlTools.ServiceLayer.TableDesigner.Contracts public InputBoxProperties Length { get; set; } = new InputBoxProperties(); + public InputBoxProperties Scale { get; set; } = new InputBoxProperties(); + + public InputBoxProperties Precision { get; set; } = new InputBoxProperties(); + public CheckBoxProperties AllowNulls { get; set; } = new CheckBoxProperties(); public InputBoxProperties DefaultValue { get; set; } = new InputBoxProperties();