mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 10:58:30 -05:00
loading database status for all databases in the server to fix the perf issue (#547)
This commit is contained in:
@@ -9,6 +9,9 @@
|
|||||||
<Filters >
|
<Filters >
|
||||||
<Filter Property="IsSystemObject" Value="0" Type="bool" />
|
<Filter Property="IsSystemObject" Value="0" Type="bool" />
|
||||||
</Filters>
|
</Filters>
|
||||||
|
<Properties>
|
||||||
|
<Property Name="Status" ValidFor="All"/>
|
||||||
|
</Properties>
|
||||||
<Child Name="SystemDatabases" IsSystemObject="1"/>
|
<Child Name="SystemDatabases" IsSystemObject="1"/>
|
||||||
</Node>
|
</Node>
|
||||||
<Node Name="ServerLevelSecurity" LocLabel="SR.SchemaHierarchy_Security" BaseClass="ModelBased" ValidFor="All">
|
<Node Name="ServerLevelSecurity" LocLabel="SR.SchemaHierarchy_Security" BaseClass="ModelBased" ValidFor="All">
|
||||||
|
|||||||
@@ -195,6 +195,20 @@ namespace Microsoft.SqlTools.ServiceLayer.ObjectExplorer.SmoModel
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override IEnumerable<NodeSmoProperty> SmoProperties
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
var properties = new List<NodeSmoProperty>();
|
||||||
|
properties.Add(new NodeSmoProperty
|
||||||
|
{
|
||||||
|
Name = "Status",
|
||||||
|
ValidFor = ValidForFlag.All
|
||||||
|
});
|
||||||
|
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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user