Add description field to ConnectionOption object (#271)

This commit is contained in:
Karl Burtram
2017-03-08 14:09:12 -08:00
committed by GitHub
parent 056a08cd1b
commit 666ee98582
2 changed files with 11 additions and 2 deletions

View File

@@ -34,6 +34,8 @@ namespace Microsoft.SqlTools.Hosting.Contracts
public string DisplayName { get; set; } public string DisplayName { get; set; }
public string Description {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>
@@ -61,7 +63,7 @@ namespace Microsoft.SqlTools.Hosting.Contracts
/// <summary> /// <summary>
/// Flag to indicate that this option is required /// Flag to indicate that this option is required
/// </summary> /// </summary>
public bool IsRequired { get; set; } public bool IsRequired { get; set; }
} }
} }

View File

@@ -199,6 +199,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Hosting
new ConnectionOption new ConnectionOption
{ {
Name = "Server Name", Name = "Server Name",
Description = "Name of the SQL Server instance",
ValueType = ConnectionOption.ValueTypeString, ValueType = ConnectionOption.ValueTypeString,
SpecialValueType = ConnectionOption.SpecialValueServerName, SpecialValueType = ConnectionOption.SpecialValueServerName,
IsIdentity = true, IsIdentity = true,
@@ -208,6 +209,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Hosting
{ {
Name = "Initial Catalog", Name = "Initial Catalog",
DisplayName = "Database Name", DisplayName = "Database Name",
Description = "Name of the SQL Server database",
ValueType = ConnectionOption.ValueTypeString, ValueType = ConnectionOption.ValueTypeString,
SpecialValueType = ConnectionOption.SpecialValueDatabaseName, SpecialValueType = ConnectionOption.SpecialValueDatabaseName,
IsIdentity = true, IsIdentity = true,
@@ -216,6 +218,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Hosting
new ConnectionOption new ConnectionOption
{ {
Name = "Auth Type", Name = "Auth Type",
Description = "Authentication type",
ValueType = ConnectionOption.ValueTypeCategory, ValueType = ConnectionOption.ValueTypeCategory,
SpecialValueType = ConnectionOption.SpecialValueAuthType, SpecialValueType = ConnectionOption.SpecialValueAuthType,
CategoryValues = new string[] { "SQL Login", "Integrated Auth" }, CategoryValues = new string[] { "SQL Login", "Integrated Auth" },
@@ -225,6 +228,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Hosting
new ConnectionOption new ConnectionOption
{ {
Name = "Username", Name = "Username",
Description = "SQL Login user name",
ValueType = ConnectionOption.ValueTypeString, ValueType = ConnectionOption.ValueTypeString,
SpecialValueType = ConnectionOption.SpecialValueUserName, SpecialValueType = ConnectionOption.SpecialValueUserName,
IsIdentity = true, IsIdentity = true,
@@ -233,7 +237,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Hosting
new ConnectionOption new ConnectionOption
{ {
Name = "Password", Name = "Password",
DisplayName = "Database Name", Description = "SQL Loging password",
ValueType = ConnectionOption.ValueTypePassword, ValueType = ConnectionOption.ValueTypePassword,
SpecialValueType = ConnectionOption.SpecialValuePasswordName, SpecialValueType = ConnectionOption.SpecialValuePasswordName,
IsIdentity = true, IsIdentity = true,
@@ -242,17 +246,20 @@ namespace Microsoft.SqlTools.ServiceLayer.Hosting
new ConnectionOption new ConnectionOption
{ {
Name = "Application Intent", Name = "Application Intent",
Description = "Application intent",
ValueType = ConnectionOption.ValueTypeCategory, ValueType = ConnectionOption.ValueTypeCategory,
CategoryValues = new string[] { "ReadWrite", "ReadOnly" } CategoryValues = new string[] { "ReadWrite", "ReadOnly" }
}, },
new ConnectionOption new ConnectionOption
{ {
Name = "Asynchronous Processing", Name = "Asynchronous Processing",
Description = "Application processing enabled",
ValueType = ConnectionOption.ValueTypeBoolean ValueType = ConnectionOption.ValueTypeBoolean
}, },
new ConnectionOption new ConnectionOption
{ {
Name = "Connect Timeout", Name = "Connect Timeout",
Description = "Timeout in seconds when establishing a connection",
ValueType = ConnectionOption.ValueTypeNumber, ValueType = ConnectionOption.ValueTypeNumber,
DefaultValue = "15" DefaultValue = "15"
}, },