Skip to content

Commit b0f31d7

Browse files
authored
Merge pull request #1130 from PHOENIXCONTACT/feature/server-sqlserver-connectionstr
Added Server to SqlServer connection string
2 parents 62c54cf + 4bc67b6 commit b0f31d7

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

src/Moryx.Model.SqlServer/SqlServerDatabaseConfig.cs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,16 @@ public class SqlServerDatabaseConfig : DatabaseConfig
1919
public override string ConfiguratorType => typeof(SqlServerModelConfigurator).AssemblyQualifiedName;
2020

2121
/// <summary>
22-
/// Name of the database associated with the connection
22+
/// Name or network address of the instance of SQL Server to connect to.
23+
/// </summary>
24+
[Required]
25+
[DefaultValue("localhost,1433")]
26+
[Description("Name or network address of the instance of SQL Server to connect to.")]
27+
[ConnectionStringKey("Server")]
28+
public string Server { get; set; }
29+
30+
/// <summary>
31+
/// Name of the database associated with the connection.
2332
/// </summary>
2433
[Required]
2534
[DefaultValue("<DatabaseName>")]
@@ -28,15 +37,15 @@ public class SqlServerDatabaseConfig : DatabaseConfig
2837
public string InitialCatalog { get; set; }
2938

3039
/// <summary>
31-
/// User ID to be used when connecting to SQL Server
40+
/// User ID to be used when connecting to SQL Server.
3241
/// </summary>
3342
[DefaultValue("sa")]
3443
[Description("User ID to be used when connecting to SQL Server")]
3544
[ConnectionStringKey("User Id") ]
3645
public string UserId { get; set; }
3746

3847
/// <summary>
39-
/// Password to be used when connecting to SQL Server
48+
/// Password to be used when connecting to SQL Server.
4049
/// </summary>
4150
[Password]
4251
[DefaultValue("password")]

0 commit comments

Comments
 (0)