Get Database Info (#370)

* added get database info to admin service

* refactored code to be inline with standard

* added comments to utils functions

* added comments to public classes

* removed camelcase from request type

* removed the wrapper for the generic dictionary

* removed unnecessary imports
This commit is contained in:
Anthony Dresser
2017-06-08 16:57:52 -07:00
committed by GitHub
parent b60a865706
commit 84edef6374
5 changed files with 96 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Admin
internal const string MaxDop = "maxDop";
internal const string DatabaseContainmentType = "databaseContainmentType";
internal const string DatabaseState = "databaseState";
internal const string RecoveryModel = "recoveryModel";
internal const string FileGroupType = "fileGroupType";
internal const string IsDefault = "isDefault";
internal const string IsFileStream = "isFileStream";
@@ -195,6 +196,15 @@ namespace Microsoft.SqlTools.ServiceLayer.Admin
GroupName = "Other"
},
new ServiceOption
{
Name = AdminServicesProviderOptionsHelper.RecoveryModel,
DisplayName = "RecoveryModel",
Description = "Recovery model",
ValueType = ServiceOption.ValueTypeString,
IsRequired = false,
GroupName = "Other"
},
new ServiceOption
{
Name = AdminServicesProviderOptionsHelper.FileGroups,
DisplayName = "File Groups",