Handling the HierarchyId for edit data scenario (#709)

* Handling the HierarchyId for edit data scenario

* comments
This commit is contained in:
Alan Ren
2019-07-09 17:03:55 -07:00
committed by GitHub
parent c1f2411b02
commit e3ec6eb739
7 changed files with 153 additions and 55 deletions

View File

@@ -36,6 +36,22 @@ namespace Microsoft.SqlTools.ServiceLayer.EditData
/// </summary>
public string EscapedName { get; set; }
/// <summary>
/// The column's expression for select statement
/// </summary>
public string ExpressionForSelectStatement
{
get
{
return IsHierarchyId ? string.Format("{0}.ToString() AS {0}", EscapedName) : EscapedName;
}
}
/// <summary>
/// Whether or not the column's data type is HierarchyId
/// </summary>
public bool IsHierarchyId { get; set; }
/// <summary>
/// Whether or not the column is computed
/// </summary>