Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 006506c

Browse files
Update examples in code documentation.
This is a follow-up to #1580 that updates the source of the Markdown docs.
1 parent 84197e5 commit 006506c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

‎src/MySqlConnector/MySqlBatch.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace MySqlConnector;
1414
/// individually.</para>
1515
/// <para>Example usage:</para>
1616
/// <code>
17-
/// using var connection = new MySqlConnection("...connection string...");
17+
/// await using var connection = new MySqlConnection("...connection string...");
1818
/// await connection.OpenAsync();
1919
///
2020
/// using var batch = new MySqlBatch(connection)

‎src/MySqlConnector/MySqlBulkCopy.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace MySqlConnector;
2727
/// var dataTable = GetDataTableFromExternalSource();
2828
///
2929
/// // open the connection
30-
/// using var connection = new MySqlConnection("...;AllowLoadLocalInfile=True");
30+
/// await using var connection = new MySqlConnection("...;AllowLoadLocalInfile=True");
3131
/// await connection.OpenAsync();
3232
///
3333
/// // bulk copy the data

‎src/MySqlConnector/MySqlBulkLoader.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace MySqlConnector;
99
/// <para><see cref="MySqlBulkLoader"/> lets you efficiently load a MySQL Server Table with data from a CSV or TSV file or <see cref="Stream"/>.</para>
1010
/// <para>Example code:</para>
1111
/// <code>
12-
/// using var connection = new MySqlConnection("...;AllowLoadLocalInfile=True");
12+
/// await using var connection = new MySqlConnection("...;AllowLoadLocalInfile=True");
1313
/// await connection.OpenAsync();
1414
/// var bulkLoader = new MySqlBulkLoader(connection)
1515
/// {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /