System::Data::Common::DbCommand class

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

MethodDescription
virtual ExecuteNonQuery()Executes non-query command.
virtual ExecuteReader()Executes query command.
virtual get_CommandText() constRTTI information.
virtual get_Connection() constGets database connecton associated with command.
virtual set_CommandText(String) constSets DB command text.
virtual set_Connection(SharedPtr<System::Data::Common::DbConnection>)Gets database connecton associated with command.

See Also