Add error link to period col error (#1494)

* add error link to period col error

* remove sql server 15 from link
This commit is contained in:
Aditya Bist
2022-05-13 10:18:58 -07:00
committed by GitHub
parent 7787a6af7b
commit 01fe402adf
2 changed files with 7 additions and 1 deletions

View File

@@ -39,5 +39,10 @@ namespace Microsoft.SqlTools.ServiceLayer.TableDesigner.Contracts
/// The severity of the message. Default value is Error.
/// </summary>
public IssueSeverity Severity { get; set; } = IssueSeverity.Error;
/// <summary>
/// Any link to docs associated with error for more information
/// </summary>
public string MoreInfoLink { get; set; }
}
}

View File

@@ -392,7 +392,8 @@ namespace Microsoft.SqlTools.ServiceLayer.TableDesigner
{
errors.Add(new TableDesignerIssue()
{
Description = "System versioned table must have the period columns defined."
Description = "System versioned table must have the period columns defined.",
MoreInfoLink = "https://docs.microsoft.com/sql/relational-databases/tables/creating-a-system-versioned-temporal-table"
});
}
return errors;