mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-22 09:35:38 -05:00
Fix Backup/Restore parameters defaulting to wrong DeviceType (#1490)
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
//
|
||||
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.SqlServer.Management.Smo;
|
||||
using Microsoft.SqlTools.ServiceLayer.TaskServices;
|
||||
using Microsoft.SqlTools.ServiceLayer.Utility;
|
||||
using Microsoft.SqlTools.Utility;
|
||||
@@ -51,11 +52,11 @@ namespace Microsoft.SqlTools.ServiceLayer.DisasterRecovery.Contracts
|
||||
}
|
||||
}
|
||||
|
||||
internal int DeviceType
|
||||
internal DeviceType DeviceType
|
||||
{
|
||||
get
|
||||
{
|
||||
return GetOptionValue<int>(RestoreOptionsHelper.DeviceType);
|
||||
return GetOptionValue<DeviceType>(RestoreOptionsHelper.DeviceType, DeviceType.File);
|
||||
}
|
||||
set
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user