System::Data::Common::DbCommand class
Contents
[
Hide
]DbCommand class
Database command. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.
class DbCommand : public System::Object
Methods
Method | Description |
---|---|
virtual ExecuteNonQuery() | Executes non-query command. |
virtual ExecuteReader() | Executes query command. |
virtual get_CommandText() const | RTTI information. |
virtual get_Connection() const | Gets database connecton associated with command. |
virtual set_CommandText(String) const | Sets DB command text. |
virtual set_Connection(SharedPtr<System::Data::Common::DbConnection>) | Gets database connecton associated with command. |
See Also
- Class Object
- Namespace System::Data::Common
- Library Aspose.PUB for C++