Add GroupName property to ConnectionOptions (#273)

This commit is contained in:
Karl Burtram
2017-03-08 18:20:43 -08:00
committed by GitHub
parent c0468e763f
commit 41a2564921
2 changed files with 7 additions and 11 deletions

View File

@@ -36,6 +36,8 @@ namespace Microsoft.SqlTools.Hosting.Contracts
public string Description {get; set; } public string Description {get; set; }
public string GroupName {get; set; }
/// <summary> /// <summary>
/// Type of the parameter. Can be either string, number, or category. /// Type of the parameter. Can be either string, number, or category.
/// </summary> /// </summary>

View File

@@ -237,7 +237,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Hosting
new ConnectionOption new ConnectionOption
{ {
Name = "Password", Name = "Password",
Description = "SQL Loging password", Description = "SQL Login password",
ValueType = ConnectionOption.ValueTypePassword, ValueType = ConnectionOption.ValueTypePassword,
SpecialValueType = ConnectionOption.SpecialValuePasswordName, SpecialValueType = ConnectionOption.SpecialValuePasswordName,
IsIdentity = true, IsIdentity = true,
@@ -272,31 +272,25 @@ namespace Microsoft.SqlTools.ServiceLayer.Hosting
{ {
Name = "Column Encrytion Setting", Name = "Column Encrytion Setting",
ValueType = ConnectionOption.ValueTypeCategory, ValueType = ConnectionOption.ValueTypeCategory,
GroupName = "Security",
CategoryValues = new string[] { "Disabled", "Enabled" } CategoryValues = new string[] { "Disabled", "Enabled" }
}, },
new ConnectionOption new ConnectionOption
{ {
Name = "Encrypt", Name = "Encrypt",
GroupName = "Security",
ValueType = ConnectionOption.ValueTypeBoolean ValueType = ConnectionOption.ValueTypeBoolean
}, },
new ConnectionOption new ConnectionOption
{ {
Name = "Persist Security Info", Name = "Persist Security Info",
GroupName = "Security",
ValueType = ConnectionOption.ValueTypeBoolean ValueType = ConnectionOption.ValueTypeBoolean
}, },
new ConnectionOption new ConnectionOption
{ {
Name = "Trust Server Certificate", Name = "Trust Server Certificate",
ValueType = ConnectionOption.ValueTypeBoolean GroupName = "Security",
},
new ConnectionOption
{
Name = "Persist Security Info",
ValueType = ConnectionOption.ValueTypeBoolean
},
new ConnectionOption
{
Name = "Trust Server Certificate",
ValueType = ConnectionOption.ValueTypeBoolean ValueType = ConnectionOption.ValueTypeBoolean
}, },
new ConnectionOption new ConnectionOption