Skip to content

Commit 70037b6

Browse files
author
mateusz.wojtania
committed
fix cr
1 parent 9745b9b commit 70037b6

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44

55
- Drop usage of System.Data.SqlClient in favor of Microsoft.Data.SqlClient
66
- Bump target framework from net451 to net462
7-
- Server certificate parameter in connection string is required now
7+
- Self signed certificates are not accepted by default anymore
88
- BulkInsert operation returns now long instead of int

Frends.Sql/Sql.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public class InputBatchOperation
4646
/// Connection string
4747
/// </summary>
4848
[PasswordPropertyText]
49-
[DefaultValue("\"TrustServerCertificate=True;Server=myServerAddress;Database=myDataBase;User Id=myUsername;Password=myPassword;\"")]
49+
[DefaultValue("\"Server=myServerAddress;Database=myDataBase;User Id=myUsername;Password=myPassword;\"")]
5050
public string ConnectionString { get; set; }
5151
}
5252

@@ -63,7 +63,7 @@ public class InputProcedure
6363
public Parameter[] Parameters { get; set; }
6464

6565
[PasswordPropertyText]
66-
[DefaultValue("\"TrustServerCertificate=True;Server=myServerAddress;Database=myDataBase;User Id=myUsername;Password=myPassword;\"")]
66+
[DefaultValue("\"Server=myServerAddress;Database=myDataBase;User Id=myUsername;Password=myPassword;\"")]
6767
public string ConnectionString { get; set; }
6868
}
6969

@@ -83,7 +83,7 @@ public class InputQuery
8383
/// Connection string
8484
/// </summary>
8585
[PasswordPropertyText]
86-
[DefaultValue("\"TrustServerCertificate=True;Server=myServerAddress;Database=myDataBase;User Id=myUsername;Password=myPassword;\"")]
86+
[DefaultValue("\"Server=myServerAddress;Database=myDataBase;User Id=myUsername;Password=myPassword;\"")]
8787
public string ConnectionString { get; set; }
8888
}
8989

@@ -120,7 +120,7 @@ public class BulkInsertInput
120120
/// Connection string
121121
/// </summary>
122122
[PasswordPropertyText]
123-
[DefaultValue("\"TrustServerCertificate=True;Server=myServerAddress;Database=myDataBase;User Id=myUsername;Password=myPassword;\"")]
123+
[DefaultValue("\"Server=myServerAddress;Database=myDataBase;User Id=myUsername;Password=myPassword;\"")]
124124
public string ConnectionString { get; set; }
125125
}
126126

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,11 @@ Long integer - Number of copied rows
164164

165165
#### Input
166166

167-
| Property | Type | Description | Example |
168-
| ----------------- | ------ | --------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
169-
| Query | string | The query that will be executed to the database. | `insert into MyTable(ID,NAME) VALUES (@Id, @FirstName)` |
170-
| Input Json | string | A Json Array of objects that has their properties mapped to the parameters in the Query | `[{"Id":10, "FirstName": "Foo"},{"Id":15, "FirstName": "Bar"}]` |
171-
| Connection String | string | Connection String to be used to connect to the database. | `Server=myServerAddress;Database=myDataBase;User Id=myUsername;Password=myPassword;` |
167+
| Property | Type | Description | Example |
168+
| ----------------- | ------ | --------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
169+
| Query | string | The query that will be executed to the database. | `insert into MyTable(ID,NAME) VALUES (@Id, @FirstName)` |
170+
| Input Json | string | A Json Array of objects that has their properties mapped to the parameters in the Query | `[{"Id":10, "FirstName": "Foo"},{"Id":15, "FirstName": "Bar"}]` |
171+
| Connection String | string | Connection String to be used to connect to the database. | `TrustServerCertificate=True;Server=myServerAddress;Database=myDataBase;User Id=myUsername;Password=myPassword;` |
172172

173173
#### Options
174174

0 commit comments

Comments
 (0)