Skip to content

Commit 62bce55

Browse files
committed
Document parameter name changes from Connector/NET. Fixes #857
1 parent 84dd0c6 commit 62bce55

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,13 @@ Well-known Binary bytes.
161161

162162
The `MySqlError[] MySqlInfoMessageEventArgs.errors` property has changed to `IReadOnlyList<MySqlError> MySqlInfoMessageEventArgs.Errors`.
163163

164+
### MySqlParameterCollection
165+
166+
Connector/NET will assign the names `@Parameter1`, `@Parameter2`, etc. to unnamed `MySqlParameter` objects that are
167+
added to the `MySqlCommand.Parameters` parameter collection. These generated names may be used in the SQL assigned to
168+
`MySqlCommand.CommandText`. MySqlConnector requires all `MySqlParameter` objects to be explicitly given a name,
169+
or used only as positional parameters if they’re unnamed.
170+
164171
### Exceptions
165172

166173
For consistency with other ADO.NET providers, MySqlConnector will throw `InvalidOperationException` (instead of `MySqlException`)

0 commit comments

Comments
 (0)