Added Server Name (#1176)

* added DatabaseName field

* added servername
This commit is contained in:
Christopher Suh
2021-03-16 18:40:14 -04:00
committed by GitHub
parent 742d9b257b
commit 0f4767aa6c
2 changed files with 6 additions and 0 deletions

View File

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

View File

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