DotNetDupe
4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Toggle main menu visibility
Loading...
Searching...
No Matches
SqlDataReader.h
Go to the documentation of this file.
1
#pragma once
2
#include "
System/Data/Common/DbDataReader.h
"
3
#include "
System/Convert.h
"
4
#include "
System/ArgumentException.h
"
5
#include "
System/SmartPointer.h
"
6
#include "
System/Data/Internal/IDatabaseBackend.h
"
7
8
namespace
DotNetDupe
{
9
namespace
System
{
10
namespace
Data
{
11
namespace
SqlClient
{
12
19
class
SqlDataReader
:
public
DotNetDupe::System::Data::Common::DbDataReader
{
20
private
:
21
struct
Impl;
22
DotNetDupe::System::SmartPointer<Impl>
m_pImpl;
23
24
public
:
28
DOTNETDUPE_API
SqlDataReader
(
Collections::Generic::List<DotNetDupe::System::Data::Internal::Row>
&& rows,
Collections::Generic::List<DotNetDupe::System::String>
&& columns);
29
31
DOTNETDUPE_API
~SqlDataReader
()
override
;
32
35
DOTNETDUPE_API
bool
Read
()
override
;
36
40
DOTNETDUPE_API
DotNetDupe::System::String
GetString
(
int
iOrdinal)
override
;
41
45
DOTNETDUPE_API
int
GetInt32
(
int
iOrdinal)
override
;
46
50
DOTNETDUPE_API
double
GetDouble
(
int
iOrdinal)
override
;
51
55
DOTNETDUPE_API
bool
IsDBNull
(
int
iOrdinal)
override
;
56
59
DOTNETDUPE_API
int
GetFieldCount
()
const override
;
60
64
DOTNETDUPE_API
DotNetDupe::System::String
GetName
(
int
iOrdinal)
override
;
65
69
DOTNETDUPE_API
int
GetOrdinal
(
const
DotNetDupe::System::String
& sName)
override
;
70
74
DOTNETDUPE_API
DotNetDupe::System::String
operator[]
(
const
DotNetDupe::System::String
& sName)
override
;
75
79
DOTNETDUPE_API
DotNetDupe::System::String
operator[]
(
int
iOrdinal)
override
;
80
};
81
82
}
83
}
84
}
85
}
ArgumentException.h
Defines the exception thrown when an invalid argument is provided to a method.
DOTNETDUPE_API
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
Definition
Common.h:20
Convert.h
Converts a base data type to another base data type, and encodes/decodes Base64 data.
DbDataReader.h
IDatabaseBackend.h
SmartPointer.h
Provides reference-counted and weak pointer memory management primitives ensuring zero raw ownership.
DotNetDupe::System::Collections::Generic::List
Represents a strongly typed list of objects accessible by index.
Definition
List.h:29
DotNetDupe::System::Data::Common::DbDataReader
Reads a forward-only stream of rows from a data source.
Definition
DbDataReader.h:19
DotNetDupe::System::Data::SqlClient::SqlDataReader::GetName
DotNetDupe::System::String GetName(int iOrdinal) override
Gets the name of the specified column.
Definition
SqlDataReader.cpp:69
DotNetDupe::System::Data::SqlClient::SqlDataReader::GetFieldCount
int GetFieldCount() const override
Gets the number of columns in the current row.
Definition
SqlDataReader.cpp:64
DotNetDupe::System::Data::SqlClient::SqlDataReader::SqlDataReader
SqlDataReader(Collections::Generic::List< DotNetDupe::System::Data::Internal::Row > &&rows, Collections::Generic::List< DotNetDupe::System::String > &&columns)
Initializes a new instance of the SqlDataReader class with row and column collections.
Definition
SqlDataReader.cpp:18
DotNetDupe::System::Data::SqlClient::SqlDataReader::GetOrdinal
int GetOrdinal(const DotNetDupe::System::String &sName) override
Gets the column ordinal, given the name of the column.
Definition
SqlDataReader.cpp:77
DotNetDupe::System::Data::SqlClient::SqlDataReader::IsDBNull
bool IsDBNull(int iOrdinal) override
Gets a value that indicates whether the column contains non-existent or missing values.
Definition
SqlDataReader.cpp:58
DotNetDupe::System::Data::SqlClient::SqlDataReader::GetString
DotNetDupe::System::String GetString(int iOrdinal) override
Gets the value of the specified column as a string.
Definition
SqlDataReader.cpp:35
DotNetDupe::System::Data::SqlClient::SqlDataReader::GetInt32
int GetInt32(int iOrdinal) override
Gets the value of the specified column as a 32-bit signed integer.
Definition
SqlDataReader.cpp:48
DotNetDupe::System::Data::SqlClient::SqlDataReader::~SqlDataReader
~SqlDataReader() override
Destructor releasing reader resources.
DotNetDupe::System::Data::SqlClient::SqlDataReader::GetDouble
double GetDouble(int iOrdinal) override
Gets the value of the specified column as a double-precision floating point number.
Definition
SqlDataReader.cpp:53
DotNetDupe::System::Data::SqlClient::SqlDataReader::Read
bool Read() override
Advances the SqlDataReader to the next record.
Definition
SqlDataReader.cpp:26
DotNetDupe::System::Data::SqlClient::SqlDataReader::operator[]
DotNetDupe::System::String operator[](const DotNetDupe::System::String &sName) override
Gets the value of the specified column in its native format given the column name.
Definition
SqlDataReader.cpp:87
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
SqlDataReader.h
Generated by
1.18.0