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 /// Underlying query for the execution plan graph
/// </summary> /// </summary>
public string Query { get; set; } public string Query { get; set; }
/// <summary>
/// Underlying xml string used for generating execution plan graph
/// </summary>
public string XmlString { get; set; }
} }
public class ExecutionPlanNode public class ExecutionPlanNode

View File

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