Files
sqltoolsservice/src/Microsoft.SqlTools.ServiceLayer/Management/Common/ManagementUtils.cs
Karl Burtram f288bee294 Make nullable warnings a per file opt-in (#1842)
* Make nullable warnings a per file opt-in

* Remove unneeded compiler directives

* Remove compiler directive for User Data
2023-02-03 18:10:07 -08:00

30 lines
757 B
C#

//
// 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.ServiceLayer.TaskServices;
namespace Microsoft.SqlTools.ServiceLayer.Management
{
/// <summary>
/// Utility functions for working with Management classes
/// </summary>
public static class ManagementUtils
{
public static RunType asRunType(TaskExecutionMode taskExecutionMode)
{
if (taskExecutionMode == TaskExecutionMode.Script)
{
return RunType.ScriptToWindow;
}
else
{
return RunType.RunNow;
}
}
}
}