DotNetDupe
4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Toggle main menu visibility
Loading...
Searching...
No Matches
SqlCommand.h
Go to the documentation of this file.
1
#pragma once
2
#include "
Common.h
"
3
#include "
System/Data/Common/DbCommand.h
"
4
5
namespace
DotNetDupe
{
6
namespace
System
{
7
namespace
Data
{
8
namespace
SqlClient
{
9
10
class
SqlConnection
;
11
18
class
SqlCommand
:
public
DotNetDupe::System::Data::Common::DbCommand
{
19
private
:
20
struct
Impl;
21
DotNetDupe::System::SmartPointer<Impl>
m_pImpl;
22
23
public
:
25
DOTNETDUPE_API
SqlCommand
();
26
30
DOTNETDUPE_API
SqlCommand
(
const
DotNetDupe::System::String
& sText,
SqlConnection
* connection);
31
33
DOTNETDUPE_API
~SqlCommand
()
override
;
34
37
DOTNETDUPE_API
DotNetDupe::System::String
GetCommandText
()
const override
;
38
41
DOTNETDUPE_API
void
SetCommandText
(
const
DotNetDupe::System::String
& sText)
override
;
42
45
DOTNETDUPE_API
DotNetDupe::System::SmartPointer<DotNetDupe::System::Data::Common::DbParameterCollection>
GetParameters
()
const override
;
46
49
DOTNETDUPE_API
DotNetDupe::System::SmartPointer<DotNetDupe::System::Data::Common::DbDataReader>
ExecuteReader
()
override
;
50
53
DOTNETDUPE_API
int
ExecuteNonQuery
()
override
;
54
57
DOTNETDUPE_API
DotNetDupe::System::String
ExecuteScalar
()
override
;
58
};
59
60
}
61
}
62
}
63
}
Common.h
Defines common cross-platform macros, export decorators, and fundamental types.
DOTNETDUPE_API
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
Definition
Common.h:20
DbCommand.h
DotNetDupe::System::Data::Common::DbCommand
Represents an abstract SQL statement or stored procedure to execute against a data source.
Definition
DbCommand.h:23
DotNetDupe::System::Data::SqlClient::SqlCommand::ExecuteNonQuery
int ExecuteNonQuery() override
Executes a Transact-SQL statement against the connection and returns the number of rows affected.
Definition
SqlCommand.cpp:65
DotNetDupe::System::Data::SqlClient::SqlCommand::GetCommandText
DotNetDupe::System::String GetCommandText() const override
Gets the Transact-SQL statement or stored procedure to execute at the data source.
Definition
SqlCommand.cpp:31
DotNetDupe::System::Data::SqlClient::SqlCommand::GetParameters
DotNetDupe::System::SmartPointer< DotNetDupe::System::Data::Common::DbParameterCollection > GetParameters() const override
Gets the SqlParameterCollection.
Definition
SqlCommand.cpp:39
DotNetDupe::System::Data::SqlClient::SqlCommand::ExecuteReader
DotNetDupe::System::SmartPointer< DotNetDupe::System::Data::Common::DbDataReader > ExecuteReader() override
Sends the CommandText to the Connection and builds a SqlDataReader.
Definition
SqlCommand.cpp:53
DotNetDupe::System::Data::SqlClient::SqlCommand::SqlCommand
SqlCommand()
Initializes a new instance of the SqlCommand class.
Definition
SqlCommand.cpp:18
DotNetDupe::System::Data::SqlClient::SqlCommand::SetCommandText
void SetCommandText(const DotNetDupe::System::String &sText) override
Sets the Transact-SQL statement or stored procedure to execute at the data source.
Definition
SqlCommand.cpp:35
DotNetDupe::System::Data::SqlClient::SqlCommand::ExecuteScalar
DotNetDupe::System::String ExecuteScalar() override
Executes the query, and returns the first column of the first row in the result set returned by the q...
Definition
SqlCommand.cpp:77
DotNetDupe::System::Data::SqlClient::SqlCommand::~SqlCommand
~SqlCommand() override
Destructor releasing command resources.
DotNetDupe::System::Data::SqlClient::SqlConnection
Represents a connection to a SQL database.
Definition
SqlConnection.h:16
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::SqlClient
Definition
SqlCommand.h:8
DotNetDupe::System::Data
Definition
DbCommand.h:11
DotNetDupe::System
Definition
Action.h:11
DotNetDupe
Definition
IServiceCollection.h:7
Include
System
Data
SqlClient
SqlCommand.h
Generated by
1.18.0