| |||||||||||||||
IDbCommand.Connection PropertySystem.Data Namespace IDbCommand Class Sets or retrieves the IDbConnection used by this instance of the IDbCommand. Syntax
Property Value
The property is read/write with no default value. Exceptions
RemarksIf you set Connection while a transaction is in progress and the Transaction property is not null, an InvalidOperationException is generated. If the Transaction property is not null and the transaction has already been committed or rolled back, Transaction is set to null. ExampleThe following example illustrates how the Connection with which to execute the command can be set.
See AlsoIDbCommand Members CommandText CommandTimeout CommandType |
| ||||||||||||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme