31 : m_sParameterName(sName), m_sValue(sValue) {}
71 int GetCount()
const {
return m_parameters.GetCount(); }
76 m_parameters.Add(pParameter);
104 return m_parameters[index];
109 m_parameters.Clear();
Defines common cross-platform macros, export decorators, and fundamental types.
Converts a base data type to another base data type, and encodes/decodes Base64 data.
Represents a strongly typed list of objects that can be accessed by index mirroring ....
Base object class for DotNetDupe mirroring .NET System.Object.
High-performance UTF-8 / UTF-16 string manipulation class mirroring .NET System.String.
Represents a strongly typed list of objects accessible by index.
static String ToString(bool value)
int GetCount() const
Gets the number of DbParameter objects in the collection.
void AddWithValue(const DotNetDupe::System::String &sName, int iValue)
Adds a parameter with a specified name and 32-bit integer value.
void Add(const DotNetDupe::System::SmartPointer< DbParameter > &pParameter)
Adds the specified DbParameter object to the DbParameterCollection.
void Clear()
Removes all DbParameter objects from the DbParameterCollection.
DotNetDupe::System::SmartPointer< DbParameter > GetAt(int index) const
Gets the DbParameter object at the specified index.
void AddWithValue(const DotNetDupe::System::String &sName, const DotNetDupe::System::String &sValue)
Adds a parameter with a specified name and string value.
void AddWithValue(const DotNetDupe::System::String &sName, double dValue)
Adds a parameter with a specified name and double value.
DbParameterCollection()=default
Initializes a new instance of DbParameterCollection.
~DbParameterCollection() override=default
Virtual destructor.
DotNetDupe::System::String GetParameterName() const
Gets the name of the DbParameter.
DotNetDupe::System::String GetValue() const
Gets the value of the parameter.
DbParameter()=default
Initializes a new default instance of DbParameter.
DbParameter(const DotNetDupe::System::String &sName, const DotNetDupe::System::String &sValue)
Initializes a new instance of DbParameter with a name and value.
~DbParameter() override=default
Virtual destructor for polymorphic cleanup.
void SetParameterName(const DotNetDupe::System::String &sName)
Sets the name of the DbParameter.
void SetValue(const DotNetDupe::System::String &sValue)
Sets the value of the parameter.
Supports all classes in the DotNetDupe class hierarchy.
A unified smart pointer that supports both unique and shared ownership semantics.
static SmartPointer< T > NewShared()
Creates a Shared SmartPointer, default constructing T.
Represents text as a sequence of UTF-8 code units with culture-invariant operations.