DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Loading...
Searching...
No Matches
DbCommand.h
Go to the documentation of this file.
1#pragma once
2#include "Common.h"
3#include "System/Object.h"
4#include "System/String.h"
8
9namespace DotNetDupe {
10 namespace System {
11 namespace Data {
12 namespace Common {
13
23 class DbCommand : public virtual DotNetDupe::System::Object {
24 public:
26 DbCommand() = default;
27
29 ~DbCommand() override = default;
30
34
37 virtual void SetCommandText(const DotNetDupe::System::String& sText) = 0;
38
42
47
51 virtual int ExecuteNonQuery() = 0;
52
57 };
58
59 }
60 }
61 }
62}
Defines common cross-platform macros, export decorators, and fundamental types.
Base object class for DotNetDupe mirroring .NET System.Object.
Provides reference-counted and weak pointer memory management primitives ensuring zero raw ownership.
High-performance UTF-8 / UTF-16 string manipulation class mirroring .NET System.String.
virtual DotNetDupe::System::SmartPointer< DbDataReader > ExecuteReader()=0
Executes the command text against the connection and returns a forward-only reader.
virtual int ExecuteNonQuery()=0
Executes a SQL statement against the connection and returns the number of rows affected.
~DbCommand() override=default
Virtual destructor for polymorphic cleanup.
virtual DotNetDupe::System::String ExecuteScalar()=0
Executes the query and returns the first column of the first row in the result set.
virtual DotNetDupe::System::SmartPointer< DbParameterCollection > GetParameters() const =0
Gets the collection of parameters associated with the command.
DbCommand()=default
Initializes a new instance of the DbCommand class.
virtual void SetCommandText(const DotNetDupe::System::String &sText)=0
Sets the text command to run against the data source.
virtual DotNetDupe::System::String GetCommandText() const =0
Gets the text command to run against the data source.
Supports all classes in the DotNetDupe class hierarchy.
Definition Object.h:18
A unified smart pointer that supports both unique and shared ownership semantics.
Represents text as a sequence of UTF-8 code units with culture-invariant operations.
Definition String.h:74