Parameters
- cmd
- A OracleCommand object to add.
The AddCommandDependency method creates a new OracleNotificationRequest object and assigns it to the OracleCommand.Notification property. The values of OracleNotificationRequest.IsNotifiedOnce, OracleNotificationRequest.IsPersistent, and OracleNotificationRequest.Timeout properties of OracleNotificationRequest are inherited from OracleDependency, either default or specified in the constructor.
Many OracleCommand objects can be attached to single OracleDependency object, but same OracleCommand object cannot be used with several OracleDependency objects.
You can also bind an OracleCommand object using some of the OracleDependency constructors.