Skip to content

Commit a3817d7

Browse files
committed
Document AutoEnlist. Fixes #920
1 parent 71a432a commit a3817d7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/content/connection-options.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,11 +261,16 @@ These are the other options that MySqlConnector supports. They are set to sensib
261261
<td>Sets the <c>program_name</c> connection attribute passed to MySQL Server. This value may be displayed by diagnostic tools,
262262
e.g., as the “Program” column in “Client Connections” in <a href="https://www.mysql.com/products/workbench/">MySQL Workbench</a>.</td>
263263
</tr>
264+
<tr id="AutoEnlist">
265+
<td>AutoEnlist, Auto Enlist</td>
266+
<td>true</td>
267+
<td>If <code>true</code> (default), <code>MySqlConnection</code> will detect if there is an active <code>TransactionScope</code> when it's opened and automatically enlist in it. If <code>false</code>, connections must be manually enlisted by calling <code>EnlistTransaction</code>.</td>
268+
</tr>
264269
<tr id="CancellationTimeout">
265270
<td>CancellationTimeout, Cancellation Timeout</td>
266271
<td>2</td>
267272
<td>The length of time (in seconds) to wait for a query to be canceled when <code>MySqlCommand.CommandTimeout</code> expires, or zero for no timeout. If a response isn’t received from the server in this
268-
time, the local socket will be closed and a <code>MySqlException</code> will be thrown</td>
273+
time, the local socket will be closed and a <code>MySqlException</code> will be thrown.</td>
269274
</tr>
270275
<tr id="CharSet">
271276
<td>CharSet, Character Set, CharacterSet</td>

0 commit comments

Comments
 (0)