mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-14 01:25:40 -05:00
Adding raw xml strings to execution plan graphs (#1371)
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user