dotConnect for MySQL Documentation
Devart.Data.MySql Namespace / MySqlDependency Class / AddCommandDependency Method / AddCommandDependency(MySqlCommand) Method
The MySqlCommand object to watch for.

In This Topic
AddCommandDependency(MySqlCommand) Method
In This Topic
Associates a MySqlCommand object with this MySqlDependency instance.
Syntax
'Declaration
 
Public Overloads Sub AddCommandDependency( _
   ByVal command As MySqlCommand _
) 
 

Parameters

command
The MySqlCommand object to watch for.
Remarks

You can associate more than one MySqlCommand objects. Every MySqlCommand object can be associated with a single MySqlDependency instance.

MySqlDependency analyzes the CommandText property of every MySqlCommand object and extracts names of the tables to watch basing on the FROM clause of the SELECT statements.

See Also