DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Loading...
Searching...
No Matches
SqlCommand.h
Go to the documentation of this file.
1#pragma once
2#include "Common.h"
4
5namespace DotNetDupe {
6 namespace System {
7 namespace Data {
61 }
62 }
63}
Defines common cross-platform macros, export decorators, and fundamental types.
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
Definition Common.h:20
Represents an abstract SQL statement or stored procedure to execute against a data source.
Definition DbCommand.h:23
int ExecuteNonQuery() override
Executes a Transact-SQL statement against the connection and returns the number of rows affected.
DotNetDupe::System::String GetCommandText() const override
Gets the Transact-SQL statement or stored procedure to execute at the data source.
DotNetDupe::System::SmartPointer< DotNetDupe::System::Data::Common::DbParameterCollection > GetParameters() const override
Gets the SqlParameterCollection.
DotNetDupe::System::SmartPointer< DotNetDupe::System::Data::Common::DbDataReader > ExecuteReader() override
Sends the CommandText to the Connection and builds a SqlDataReader.
SqlCommand()
Initializes a new instance of the SqlCommand class.
void SetCommandText(const DotNetDupe::System::String &sText) override
Sets the Transact-SQL statement or stored procedure to execute at the data source.
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...
~SqlCommand() override
Destructor releasing command resources.
Represents a connection to a SQL database.
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