adding metadata to object explorer node info (#320)

* adding metadata to oe node info
This commit is contained in:
Leila Lali
2017-04-19 08:32:39 -07:00
committed by GitHub
parent 96d46b5c09
commit 8c0885da88
16 changed files with 121 additions and 81 deletions

View File

@@ -13,18 +13,17 @@ namespace Microsoft.SqlTools.ServiceLayer.ObjectExplorer.Nodes
{
None,
SqlServersRoot,
DatabaseInstance,
DacInstance,
ServerInstance,
ScalarValuedFunctionInstance,
TableValuedFunctionInstance,
AggregateFunctionInstance,
Database,
Server,
ScalarValuedFunction,
TableValuedFunction,
AggregateFunction,
FileGroupInstance,
StoredProcedureInstance,
UserDefinedTableTypeInstance,
ViewInstance,
TableInstance,
HistoryTableInstance,
StoredProcedure,
UserDefinedTableType,
View,
Table,
HistoryTable,
Databases,
ExternalResources,
ServerLevelSecurity,
@@ -130,10 +129,10 @@ namespace Microsoft.SqlTools.ServiceLayer.ObjectExplorer.Nodes
SecurityPolicies,
DatabaseScopedCredentials,
ExternalTables,
ExternalResourceInstance,
ExternalResource,
ExternalDataSources,
ExternalFileFormats,
ExternalTableInstance,
ExternalTable,
AlwaysEncryptedKeys,
ColumnMasterKeys,
ColumnEncryptionKeys

View File

@@ -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
};
}