mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-29 09:35:38 -05:00
Porting showplan code from ssms (#1280)
* Porting showplan code from ssms * Moving showplans bits to a subfolder * code cleanup * Remvoing unnecssary conditional visibility
This commit is contained in:
@@ -0,0 +1,88 @@
|
||||
//
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
//
|
||||
|
||||
namespace Microsoft.SqlTools.ServiceLayer.ShowPlan.ShowPlanGraph
|
||||
{
|
||||
public class Description
|
||||
{
|
||||
#region Properties
|
||||
|
||||
public string Title
|
||||
{
|
||||
get { return this.title; }
|
||||
set
|
||||
{
|
||||
this.title = value.Trim().Replace(NewLine, " ");
|
||||
}
|
||||
}
|
||||
|
||||
public string QueryText
|
||||
{
|
||||
get { return this.queryText; }
|
||||
set
|
||||
{
|
||||
string text = value.Trim();
|
||||
this.queryText = text.Replace(NewLine, " ");
|
||||
}
|
||||
}
|
||||
|
||||
public string ClusteredMode
|
||||
{
|
||||
get { return this.clusteredMode; }
|
||||
set
|
||||
{
|
||||
this.clusteredMode = value.Trim().Replace(NewLine, " ");
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsClusteredMode
|
||||
{
|
||||
set
|
||||
{
|
||||
this.isClusteredMode = value;
|
||||
}
|
||||
}
|
||||
|
||||
public bool HasMissingIndex
|
||||
{
|
||||
get { return this.hasMissingIndex; }
|
||||
}
|
||||
|
||||
public string MissingIndexQueryText
|
||||
{
|
||||
get { return this.missingIndexQueryText; }
|
||||
}
|
||||
|
||||
public string MissingIndexImpact
|
||||
{
|
||||
get { return this.missingIndexImpact; }
|
||||
}
|
||||
|
||||
public string MissingIndexDatabase
|
||||
{
|
||||
get { return this.missingIndexDatabase; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Member variables
|
||||
|
||||
private string title = string.Empty;
|
||||
private string queryText = string.Empty;
|
||||
private string toolTipQueryText = string.Empty;
|
||||
private string clusteredMode = string.Empty;
|
||||
private bool isClusteredMode = false;
|
||||
|
||||
private bool hasMissingIndex = false;
|
||||
private string missingIndexCaption = string.Empty; // actual caption text that will be displayed on the screen
|
||||
private string missingIndexQueryText = string.Empty; // create index query
|
||||
private string missingIndexImpact = string.Empty; // impact
|
||||
private string missingIndexDatabase = string.Empty; // database context
|
||||
|
||||
private const string NewLine = "\r\n";
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user