DotNetDupe
4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Toggle main menu visibility
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
"
5
#include "
System/SmartPointer.h
"
6
#include "
System/Data/Common/DbDataReader.h
"
7
#include "
System/Data/Common/DbParameter.h
"
8
9
namespace
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
33
virtual
DotNetDupe::System::String
GetCommandText
()
const
= 0;
34
37
virtual
void
SetCommandText
(
const
DotNetDupe::System::String
& sText) = 0;
38
41
virtual
DotNetDupe::System::SmartPointer<DbParameterCollection>
GetParameters
()
const
= 0;
42
46
virtual
DotNetDupe::System::SmartPointer<DbDataReader>
ExecuteReader
() = 0;
47
51
virtual
int
ExecuteNonQuery
() = 0;
52
56
virtual
DotNetDupe::System::String
ExecuteScalar
() = 0;
57
};
58
59
}
60
}
61
}
62
}
Common.h
Defines common cross-platform macros, export decorators, and fundamental types.
DbDataReader.h
DbParameter.h
Object.h
Base object class for DotNetDupe mirroring .NET System.Object.
SmartPointer.h
Provides reference-counted and weak pointer memory management primitives ensuring zero raw ownership.
String.h
High-performance UTF-8 / UTF-16 string manipulation class mirroring .NET System.String.
DotNetDupe::System::Data::Common::DbCommand::ExecuteReader
virtual DotNetDupe::System::SmartPointer< DbDataReader > ExecuteReader()=0
Executes the command text against the connection and returns a forward-only reader.
DotNetDupe::System::Data::Common::DbCommand::ExecuteNonQuery
virtual int ExecuteNonQuery()=0
Executes a SQL statement against the connection and returns the number of rows affected.
DotNetDupe::System::Data::Common::DbCommand::~DbCommand
~DbCommand() override=default
Virtual destructor for polymorphic cleanup.
DotNetDupe::System::Data::Common::DbCommand::ExecuteScalar
virtual DotNetDupe::System::String ExecuteScalar()=0
Executes the query and returns the first column of the first row in the result set.
DotNetDupe::System::Data::Common::DbCommand::GetParameters
virtual DotNetDupe::System::SmartPointer< DbParameterCollection > GetParameters() const =0
Gets the collection of parameters associated with the command.
DotNetDupe::System::Data::Common::DbCommand::DbCommand
DbCommand()=default
Initializes a new instance of the DbCommand class.
DotNetDupe::System::Data::Common::DbCommand::SetCommandText
virtual void SetCommandText(const DotNetDupe::System::String &sText)=0
Sets the text command to run against the data source.
DotNetDupe::System::Data::Common::DbCommand::GetCommandText
virtual DotNetDupe::System::String GetCommandText() const =0
Gets the text command to run against the data source.
DotNetDupe::System::Object
Supports all classes in the DotNetDupe class hierarchy.
Definition
Object.h:18
DotNetDupe::System::SmartPointer
A unified smart pointer that supports both unique and shared ownership semantics.
Definition
SmartPointer.h:72
DotNetDupe::System::String
Represents text as a sequence of UTF-8 code units with culture-invariant operations.
Definition
String.h:74
DotNetDupe::System::Data::Common
Definition
DbCommand.h:12
DotNetDupe::System::Data
Definition
DbCommand.h:11
DotNetDupe::System
Definition
Action.h:11
DotNetDupe
Definition
IServiceCollection.h:7
Include
System
Data
Common
DbCommand.h
Generated by
1.18.0