Revert "graph type logic for node sub type (#1440)" (#1468)

This reverts commit 553b9af36e.
This commit is contained in:
Karl Burtram
2022-04-21 11:46:55 -07:00
committed by GitHub
parent 881c335cdf
commit 853335df72

View File

@@ -43,20 +43,9 @@ namespace Microsoft.SqlTools.ServiceLayer.ObjectExplorer.SmoModel
try
{
Table table = smoObject as Table;
if (table != null)
if (table != null && IsPropertySupported("TemporalType", smoContext, table, CachedSmoProperties) && table.TemporalType != TableTemporalType.None)
{
if (IsPropertySupported("TemporalType", smoContext, table, CachedSmoProperties) && table.TemporalType != TableTemporalType.None)
{
return "Temporal";
}
else if (IsPropertySupported("IsEdge", smoContext, table, CachedSmoProperties) && table.IsEdge)
{
return "GraphEdge";
}
else if (IsPropertySupported("IsNode", smoContext, table, CachedSmoProperties) && table.IsNode)
{
return "GraphNode";
}
return "Temporal";
}
// TODO carbon issue 3125 enable "External" subtype once icon is ready. Otherwise will get missing icon here.
// else if (table != null && IsPropertySupported("IsExternal", smoContext, table, CachedSmoProperties) && table.IsExternal)