graph type logic for node sub type (#1440)

This commit is contained in:
Aditya Bist
2022-03-22 21:43:43 -07:00
committed by GitHub
parent 8215d88dcf
commit 553b9af36e

View File

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