Skip to content

Commit 1f1c01d

Browse files
committed
Minor tweaks.
1 parent 64d5f97 commit 1f1c01d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

PSql.Deploy.Engine/Core/SqlTargetConnection.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ protected SqlTargetConnection(Target target, ISqlMessageLogger logger)
3232
Logger = logger;
3333

3434
Connection = target.SqlCredential is { } credential
35-
? new SqlConnection(target.ConnectionString, credential)
36-
: new SqlConnection(target.ConnectionString);
35+
? new(target.ConnectionString, credential)
36+
: new(target.ConnectionString);
3737

3838
Connection.RetryLogicProvider = RetryLogicProvider;
3939
Connection.FireInfoMessageEventOnUserErrors = true;
@@ -46,7 +46,7 @@ protected SqlTargetConnection(Target target, ISqlMessageLogger logger)
4646
}
4747

4848
/// <summary>
49-
/// Gets the retry logic for the connection.
49+
/// Gets the retry logic for connections.
5050
/// </summary>
5151
protected static SqlRetryLogicBaseProvider RetryLogicProvider { get; }
5252
= SqlConfigurableRetryFactory.CreateExponentialRetryProvider(new()
@@ -59,9 +59,6 @@ protected SqlTargetConnection(Target target, ISqlMessageLogger logger)
5959
/// <inheritdoc/>
6060
public Target Target { get; }
6161

62-
/// <inheritdoc/>
63-
public ISqlMessageLogger Logger { get; }
64-
6562
/// <summary>
6663
/// Gets the underlying SqlClient connection.
6764
/// </summary>
@@ -72,6 +69,9 @@ protected SqlTargetConnection(Target target, ISqlMessageLogger logger)
7269
/// </summary>
7370
protected SqlCommand Command { get; }
7471

72+
/// <inheritdoc/>
73+
public ISqlMessageLogger Logger { get; }
74+
7575
/// <summary>
7676
/// Gets whether one or more error messages have been received over the
7777
/// connection since the most recent invocation of

0 commit comments

Comments
 (0)