MySqlCommandBuilder Constructor (MySqlDataAdapter)

MySQL Connector.Net

Collapse image Expand Image Copy image CopyHover image
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.8.4.0

Syntax

C#
public MySqlCommandBuilder(
	MySqlDataAdapter adapter
)
Visual Basic
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.

See Also