MySqlCommandBuilder Constructor (MySqlDataAdapter)

MySQL Connector/Net

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
)

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