From 0f4767aa6c1906a4d9854855df125673a7f0d1b0 Mon Sep 17 00:00:00 2001 From: Christopher Suh Date: Tue, 16 Mar 2021 18:40:14 -0400 Subject: [PATCH] Added Server Name (#1176) * added DatabaseName field * added servername --- .../Migration/Contracts/MigrationAssessmentInfo.cs | 5 +++++ .../Migration/MigrationService.cs | 1 + 2 files changed, 6 insertions(+) diff --git a/src/Microsoft.SqlTools.ServiceLayer/Migration/Contracts/MigrationAssessmentInfo.cs b/src/Microsoft.SqlTools.ServiceLayer/Migration/Contracts/MigrationAssessmentInfo.cs index 894120ab..48032a19 100644 --- a/src/Microsoft.SqlTools.ServiceLayer/Migration/Contracts/MigrationAssessmentInfo.cs +++ b/src/Microsoft.SqlTools.ServiceLayer/Migration/Contracts/MigrationAssessmentInfo.cs @@ -38,6 +38,11 @@ namespace Microsoft.SqlTools.ServiceLayer.Migration.Contracts /// public string DatabaseName { get; set; } + /// + /// Gets or sets the server name. + /// + public string ServerName { get; set; } + /// /// Gets or sets check's ID. /// diff --git a/src/Microsoft.SqlTools.ServiceLayer/Migration/MigrationService.cs b/src/Microsoft.SqlTools.ServiceLayer/Migration/MigrationService.cs index 068a64dc..b9211266 100644 --- a/src/Microsoft.SqlTools.ServiceLayer/Migration/MigrationService.cs +++ b/src/Microsoft.SqlTools.ServiceLayer/Migration/MigrationService.cs @@ -203,6 +203,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Migration Level = r.Check.Level.ToString(), TargetName = targetName, DatabaseName = migrationResult.DatabaseName, + ServerName = migrationResult.ServerName, Tags = r.Check.Tags.ToArray(), TargetType = target.Type, RulesetName = Engine.Configuration.DefaultRuleset.Name,