DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Loading...
Searching...
No Matches
SqlDataReader.h
Go to the documentation of this file.
1#pragma once
3#include "System/Convert.h"
7
8namespace DotNetDupe {
9 namespace System {
10 namespace Data {
11 namespace SqlClient {
12
20 private:
21 struct Impl;
23
24 public:
29
32
35 DOTNETDUPE_API bool Read() override;
36
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
65
69 DOTNETDUPE_API int GetOrdinal(const DotNetDupe::System::String& sName) override;
70
75
80 };
81
82 }
83 }
84 }
85}
Defines the exception thrown when an invalid argument is provided to a method.
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
Definition Common.h:20
Converts a base data type to another base data type, and encodes/decodes Base64 data.
Provides reference-counted and weak pointer memory management primitives ensuring zero raw ownership.
Represents a strongly typed list of objects accessible by index.
Definition List.h:29
Reads a forward-only stream of rows from a data source.
DotNetDupe::System::String GetName(int iOrdinal) override
Gets the name of the specified column.
int GetFieldCount() const override
Gets the number of columns in the current row.
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.
int GetOrdinal(const DotNetDupe::System::String &sName) override
Gets the column ordinal, given the name of the column.
bool IsDBNull(int iOrdinal) override
Gets a value that indicates whether the column contains non-existent or missing values.
DotNetDupe::System::String GetString(int iOrdinal) override
Gets the value of the specified column as a string.
int GetInt32(int iOrdinal) override
Gets the value of the specified column as a 32-bit signed integer.
~SqlDataReader() override
Destructor releasing reader resources.
double GetDouble(int iOrdinal) override
Gets the value of the specified column as a double-precision floating point number.
bool Read() override
Advances the SqlDataReader to the next record.
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.
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