// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // #nullable disable using Microsoft.SqlTools.Hosting.Protocol.Contracts; using Microsoft.SqlTools.Utility; namespace Microsoft.SqlTools.ServiceLayer.ObjectManagement.Contracts { public class DetachDatabaseRequestParams : GeneralRequestDetails { /// /// SFC (SMO) URN identifying the object /// public string ObjectUrn { get; set; } /// /// The target database name. /// public string Database { get; set; } /// /// URI of the underlying connection for this request /// public string ConnectionUri { get; set; } /// /// Whether to drop active connections to this database /// public bool DropConnections { get; set; } /// /// Whether to update the optimization statistics related to this database /// public bool UpdateStatistics { get; set; } /// /// Whether to generate a TSQL script for the operation instead of detaching the database /// public bool GenerateScript { get; set; } } public class DetachDatabaseRequest { public static readonly RequestType Type = RequestType.Create("objectManagement/detachDatabase"); } }