diff --git a/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.cs b/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.cs index 9adff211..566ab816 100644 --- a/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.cs +++ b/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.cs @@ -1,5 +1,5 @@ // WARNING: -// This file was generated by the Microsoft DataWarehouse String Resource Tool 5.0.0.0 +// This file was generated by the Microsoft DataWarehouse String Resource Tool 4.0.0.0 // from information in sr.strings // DO NOT MODIFY THIS FILE'S CONTENTS, THEY WILL BE OVERWRITTEN // @@ -2045,6 +2045,14 @@ namespace Microsoft.SqlTools.ServiceLayer } } + public static string SchemaHierarchy_DroppedLedgerTables + { + get + { + return Keys.GetString(Keys.SchemaHierarchy_DroppedLedgerTables); + } + } + public static string SchemaHierarchy_AlwaysEncryptedKeys { get @@ -10645,6 +10653,9 @@ namespace Microsoft.SqlTools.ServiceLayer public const string SchemaHierarchy_ExternalTables = "SchemaHierarchy_ExternalTables"; + public const string SchemaHierarchy_DroppedLedgerTables = "SchemaHierarchy_DroppedLedgerTables"; + + public const string SchemaHierarchy_AlwaysEncryptedKeys = "SchemaHierarchy_AlwaysEncryptedKeys"; diff --git a/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.resx b/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.resx index 30a0d870..2c7ce566 100644 --- a/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.resx +++ b/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.resx @@ -1280,6 +1280,10 @@ External Tables + + Dropped Ledger Tables + + Always Encrypted Keys diff --git a/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.strings b/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.strings index 6ce2b1d0..b07df0e7 100644 --- a/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.strings +++ b/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.strings @@ -630,6 +630,8 @@ SchemaHierarchy_ExternalResources = External Resources SchemaHierarchy_ExternalTables = External Tables +SchemaHierarchy_DroppedLedgerTables = Dropped Ledger Tables + SchemaHierarchy_AlwaysEncryptedKeys = Always Encrypted Keys SchemaHierarchy_ColumnMasterKeys = Column Master Keys diff --git a/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.xlf b/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.xlf index 7e0720a3..ea7aa62d 100644 --- a/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.xlf +++ b/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.xlf @@ -6321,6 +6321,11 @@ The Query Processor estimates that implementing the following index could improv Ledger + + Dropped Ledger Tables + Dropped Ledger Tables + + \ No newline at end of file diff --git a/src/Microsoft.SqlTools.ServiceLayer/ObjectExplorer/Nodes/NodeTypes.cs b/src/Microsoft.SqlTools.ServiceLayer/ObjectExplorer/Nodes/NodeTypes.cs index 6ce03318..f9697582 100644 --- a/src/Microsoft.SqlTools.ServiceLayer/ObjectExplorer/Nodes/NodeTypes.cs +++ b/src/Microsoft.SqlTools.ServiceLayer/ObjectExplorer/Nodes/NodeTypes.cs @@ -139,6 +139,7 @@ namespace Microsoft.SqlTools.ServiceLayer.ObjectExplorer.Nodes ExternalTable, AlwaysEncryptedKeys, ColumnMasterKeys, - ColumnEncryptionKeys + ColumnEncryptionKeys, + DroppedLedgerTables, } } diff --git a/src/Microsoft.SqlTools.ServiceLayer/ObjectExplorer/SmoModel/SmoTreeNodes.cs b/src/Microsoft.SqlTools.ServiceLayer/ObjectExplorer/SmoModel/SmoTreeNodes.cs index 8d8b29fa..453eff60 100644 --- a/src/Microsoft.SqlTools.ServiceLayer/ObjectExplorer/SmoModel/SmoTreeNodes.cs +++ b/src/Microsoft.SqlTools.ServiceLayer/ObjectExplorer/SmoModel/SmoTreeNodes.cs @@ -797,6 +797,13 @@ namespace Microsoft.SqlTools.ServiceLayer.ObjectExplorer.SmoModel { LedgerTableType.UpdatableLedgerTable } } }); + filters.Add(new NodePropertyFilter + { + Property = "IsDroppedLedgerTable", + Type = typeof(bool), + ValidFor = ValidForFlag.Sql2022|ValidForFlag.AzureV12, + Values = new List { 0 }, + }); return filters; } } @@ -845,6 +852,14 @@ namespace Microsoft.SqlTools.ServiceLayer.ObjectExplorer.SmoModel IsMsShippedOwned = true, SortPriority = SmoTreeNode.NextSortPriority, }); + currentChildren.Add(new FolderNode { + NodeValue = SR.SchemaHierarchy_DroppedLedgerTables, + NodeType = "Folder", + NodeTypeId = NodeTypes.DroppedLedgerTables, + IsSystemObject = false, + ValidFor = ValidForFlag.Sql2022|ValidForFlag.AzureV12, + SortPriority = SmoTreeNode.NextSortPriority, + }); } internal override Type[] ChildQuerierTypes @@ -1318,6 +1333,57 @@ namespace Microsoft.SqlTools.ServiceLayer.ObjectExplorer.SmoModel } } + [Export(typeof(ChildFactory))] + [Shared] + internal partial class DroppedLedgerTablesChildFactory : SmoChildFactoryBase + { + public override IEnumerable ApplicableParents() { return new[] { "DroppedLedgerTables" }; } + + public override IEnumerable Filters + { + get + { + var filters = new List(); + filters.Add(new NodePropertyFilter + { + Property = "IsDroppedLedgerTable", + Type = typeof(bool), + Values = new List { 1 }, + }); + return filters; + } + } + + public override IEnumerable SmoProperties + { + get + { + var properties = new List(); + properties.Add(new NodeSmoProperty + { + Name = "IsDroppedLedgerTable", + ValidFor = ValidForFlag.Sql2022|ValidForFlag.AzureV12 + }); + return properties; + } + } + + internal override Type[] ChildQuerierTypes + { + get + { + return new [] { typeof(SqlTableQuerier), }; + } + } + + public override TreeNode CreateChild(TreeNode parent, object context) + { + var child = new TableTreeNode(); + InitializeChild(parent, child, context); + return child; + } + } + [Export(typeof(ChildFactory))] [Shared] internal partial class TableChildFactory : SmoChildFactoryBase diff --git a/src/Microsoft.SqlTools.ServiceLayer/ObjectExplorer/SmoModel/SmoTreeNodesDefinition.xml b/src/Microsoft.SqlTools.ServiceLayer/ObjectExplorer/SmoModel/SmoTreeNodesDefinition.xml index b8d68710..0fd84bce 100644 --- a/src/Microsoft.SqlTools.ServiceLayer/ObjectExplorer/SmoModel/SmoTreeNodesDefinition.xml +++ b/src/Microsoft.SqlTools.ServiceLayer/ObjectExplorer/SmoModel/SmoTreeNodesDefinition.xml @@ -82,6 +82,7 @@ LedgerTableType.AppendOnlyLedgerTable LedgerTableType.UpdatableLedgerTable + @@ -92,6 +93,7 @@ + @@ -161,6 +163,14 @@ + + + + + + + +