![Collapse image](collapse_all.gif)
![Expand Image](expand_all.gif)
![](collapse_all.gif)
![](expand_all.gif)
![](dropdown.gif)
![](dropdownHover.gif)
![Copy image](copycode.gif)
![CopyHover image](copycodeHighlight.gif)
![]() ![]() |
MySQL Connector/Net |
MySqlCommandBuilder Constructor (MySqlDataAdapter) |
MySqlCommandBuilder Class See Also Send Feedback |
Initializes a new instance of the MySqlCommandBuilder class
with the associated MySqlDataAdapter object.
Namespace:
MySql.Data.MySqlClient
Assembly:
MySql.Data (in MySql.Data.dll) Version: 6.2.2.0
Syntax
C# |
---|
public MySqlCommandBuilder( MySqlDataAdapter adapter ) |
Visual Basic (Declaration) |
---|
Public Sub New ( _ adapter As MySqlDataAdapter _ ) |
Visual C++ |
---|
public: MySqlCommandBuilder( MySqlDataAdapter^ adapter ) |
Parameters
- adapter
- Type: MySql.Data.MySqlClient..::.MySqlDataAdapter
The MySqlDataAdapter to use.
Remarks
The MySqlCommandBuilder registers itself as a listener for RowUpdating events that are generated by the MySqlDataAdapter specified in this property.
When you create a new instance MySqlCommandBuilder, any existing MySqlCommandBuilder associated with this MySqlDataAdapter is released.