Skip to content

Commit

Permalink
Update to SqlClient 5.1.5
Browse files Browse the repository at this point in the history
fixes #150
  • Loading branch information
ErikEJ committed Feb 2, 2024
1 parent 44ef9a6 commit 5f8b40d
Show file tree
Hide file tree
Showing 6 changed files with 478 additions and 349 deletions.
6 changes: 6 additions & 0 deletions src/SQLQueryStress/ConnectionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ public class ConnectionInfo : ICloneable
[DataMember]
public string Server { get; set; }

[DataMember]
public SqlConnectionEncryptOption EncryptOption { get; set; }

[DataMember]
public ApplicationIntent ApplicationIntent { get; set; }

Expand Down Expand Up @@ -57,6 +60,7 @@ public ConnectionInfo()
ConnectTimeout = 0;
MaxPoolSize = 0;
EnablePooling = true;
EncryptOption = SqlConnectionEncryptOption.Optional;
}

public ConnectionInfo(int connectTimeout, bool enablePooling, int maxPoolSize) : this()
Expand Down Expand Up @@ -102,6 +106,7 @@ public string ConnectionString
}

build.Pooling = EnablePooling;
build.Encrypt = EncryptOption;

return build.ConnectionString;
}
Expand Down Expand Up @@ -133,6 +138,7 @@ public void CopyTo(ConnectionInfo to)
to.Password = Password;
to.Database = Database;
to.ApplicationIntent = ApplicationIntent;
to.EncryptOption = EncryptOption;
}

[System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1031:Do not catch general exception types")]
Expand Down
Loading

0 comments on commit 5f8b40d

Please sign in to comment.