added DatabaseName field (#1166)

This commit is contained in:
Christopher Suh
2021-02-23 21:32:02 -05:00
committed by GitHub
parent 13a7d4aa2b
commit 8fb6474cf0
2 changed files with 6 additions and 0 deletions

View File

@@ -33,6 +33,11 @@ namespace Microsoft.SqlTools.ServiceLayer.Migration.Contracts
/// </summary>
public string TargetName { get; set; }
/// <summary>
/// Gets or sets the database name.
/// </summary>
public string DatabaseName { get; set; }
/// <summary>
/// Gets or sets check's ID.
/// </summary>

View File

@@ -202,6 +202,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Migration
HelpLink = r.Check.HelpLink,
Level = r.Check.Level.ToString(),
TargetName = targetName,
DatabaseName = migrationResult.DatabaseName,
Tags = r.Check.Tags.ToArray(),
TargetType = target.Type,
RulesetName = Engine.Configuration.DefaultRuleset.Name,