Add 'LedgerViewType' as supported property for SQL 2022 and Azure DBs (#1801)

This commit is contained in:
Cheena Malhotra
2023-01-09 15:27:58 -08:00
committed by GitHub
parent af4c217584
commit bd37bf84ce
2 changed files with 17 additions and 0 deletions

View File

@@ -921,6 +921,20 @@ namespace Microsoft.SqlTools.ServiceLayer.ObjectExplorer.SmoModel
} }
} }
public override IEnumerable<NodeSmoProperty> SmoProperties
{
get
{
var properties = new List<NodeSmoProperty>();
properties.Add(new NodeSmoProperty
{
Name = "LedgerViewType",
ValidFor = ValidForFlag.Sql2022|ValidForFlag.AzureV12
});
return properties;
}
}
protected override void OnExpandPopulateFolders(IList<TreeNode> currentChildren, TreeNode parent) protected override void OnExpandPopulateFolders(IList<TreeNode> currentChildren, TreeNode parent)
{ {
currentChildren.Add(new FolderNode { currentChildren.Add(new FolderNode {

View File

@@ -106,6 +106,9 @@
<Filter Property="IsSystemObject" Value="0" Type="bool" /> <Filter Property="IsSystemObject" Value="0" Type="bool" />
<Filter Property="IsDroppedLedgerView" Value="0" Type="bool" ValidFor="Sql2022|AzureV12"/> <Filter Property="IsDroppedLedgerView" Value="0" Type="bool" ValidFor="Sql2022|AzureV12"/>
</Filters> </Filters>
<Properties>
<Property Name="LedgerViewType" ValidFor="Sql2022|AzureV12"/>
</Properties>
<Child Name="SystemViews" IsSystemObject="1"/> <Child Name="SystemViews" IsSystemObject="1"/>
<Child Name="DroppedLedgerViews"/> <Child Name="DroppedLedgerViews"/>
</Node> </Node>