mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-25 01:25:40 -05:00
adding metadata to object explorer node info (#320)
* adding metadata to oe node info
This commit is contained in:
@@ -8,7 +8,7 @@ using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using Microsoft.SqlTools.ServiceLayer.Metadata.Contracts;
|
||||
using Microsoft.SqlTools.ServiceLayer.ObjectExplorer.Contracts;
|
||||
using Microsoft.SqlTools.ServiceLayer.ObjectExplorer.SmoModel;
|
||||
using Microsoft.SqlTools.Utility;
|
||||
@@ -52,6 +52,12 @@ namespace Microsoft.SqlTools.ServiceLayer.ObjectExplorer.Nodes
|
||||
/// </summary>
|
||||
public string NodeValue { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Object metadata for smo objects
|
||||
/// </summary>
|
||||
public ObjectMetadata ObjectMetadata { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The type of the node - for example Server, Database, Folder, Table
|
||||
/// </summary>
|
||||
@@ -170,7 +176,8 @@ namespace Microsoft.SqlTools.ServiceLayer.ObjectExplorer.Nodes
|
||||
IsLeaf = this.IsAlwaysLeaf,
|
||||
Label = this.Label,
|
||||
NodePath = this.GetNodePath(),
|
||||
NodeType = this.NodeType
|
||||
NodeType = this.NodeType,
|
||||
Metadata = this.ObjectMetadata
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user