loading database status for all databases in the server to fix the perf issue (#547)

This commit is contained in:
Leila Lali
2017-11-15 15:46:53 -08:00
committed by GitHub
parent 4bcf181787
commit 7a3baf6620
2 changed files with 17 additions and 0 deletions

View File

@@ -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)
{
currentChildren.Add(new FolderNode {