Skip to content

Commit 32c9dd6

Browse files
committed
Add note about disposed connections. Fixes #331
1 parent dd8bb81 commit 32c9dd6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/content/tutorials/migrating-from-connector-net.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,17 @@ while Connector/NET uses regular database transactions. As a result, code that u
4646
may execute differently with MySqlConnector. To get Connector/NET-compatible behavior, remove
4747
`TransactionScope` and use `BeginTransaction`/`Commit` directly.
4848

49+
### MySqlConnection
50+
51+
Connector/NET allows a `MySqlConnection` object to be reused after it has been disposed. MySqlConnector requires a new `MySqlConnection`
52+
object to be created. See [#331](https://github.com/mysql-net/MySqlConnector/issues/331) for more details.
53+
54+
### MySqlCommand
55+
56+
Connector/NET allows a command to be executed even when `MySqlCommand.Transaction` references a commited, rolled back, or
57+
disposed `MySqlTransaction`. MySqlConnector will throw an `InvalidOperationException` if the `MySqlCommand.Transaction`
58+
property doesn't reference the active transaction. See [#333](https://github.com/mysql-net/MySqlConnector/issues/333) for more details.
59+
4960
### Bugs present in Connector/NET that are fixed in MySqlConnector
5061

5162
* [#37283](https://bugs.mysql.com/bug.php?id=37283), [#70587](https://bugs.mysql.com/bug.php?id=70587): Distributed transactions are not supported

0 commit comments

Comments
 (0)