Adding raw xml strings to execution plan graphs (#1371)

This commit is contained in:
Aasim Khan
2022-01-26 14:23:51 -08:00
committed by GitHub
parent e9b926af75
commit 0fd271b04e
2 changed files with 7 additions and 2 deletions

View File

@@ -20,6 +20,10 @@ namespace Microsoft.SqlTools.ServiceLayer.ShowPlan
/// Underlying query for the execution plan graph
/// </summary>
public string Query { get; set; }
/// <summary>
/// Underlying xml string used for generating execution plan graph
/// </summary>
public string XmlString { get; set; }
}
public class ExecutionPlanNode
@@ -84,7 +88,7 @@ namespace Microsoft.SqlTools.ServiceLayer.ShowPlan
public bool IsLongString { get; set; }
}
public class NestedExecutionPlanGraphProperty: ExecutionPlanGraphPropertyBase
public class NestedExecutionPlanGraphProperty : ExecutionPlanGraphPropertyBase
{
/// <summary>
/// In case of nested properties, the value field is a list of properties.

View File

@@ -18,7 +18,8 @@ namespace Microsoft.SqlTools.ServiceLayer.ShowPlan
return graphs.Select(g => new ExecutionPlanGraph
{
Root = ConvertShowPlanTreeToExecutionPlanTree(g.Root),
Query = g.Statement
Query = g.Statement,
XmlString = xml
}).ToList();
}