DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Loading...
Searching...
No Matches
SqlConnection.h
Go to the documentation of this file.
1#pragma once
2#include "Common.h"
4
5namespace DotNetDupe {
6 namespace System {
7 namespace Data {
8 namespace SqlClient {
9
58
59 }
60 }
61 }
62}
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 connection to an ADO.NET compatible data source.
void Open() override
Opens a database connection with the property settings specified by the ConnectionString.
~SqlConnection() override
Destructor ensuring connection closure.
SqlConnection()
Initializes a new instance of the SqlConnection class.
void SetConnectionString(const DotNetDupe::System::String &sConnStr) override
Sets the string used to open a SQL database.
DotNetDupe::System::SmartPointer< DotNetDupe::System::Data::Common::DbCommand > CreateCommand() override
Creates and returns a SqlCommand object associated with the SqlConnection.
DotNetDupe::System::String GetDatabaseName() const
Gets the name of the current database.
bool IsOpen() const
Gets whether the connection is currently open.
void Close() override
Closes the connection to the database.
DotNetDupe::System::String GetConnectionString() const override
Gets the string used to open 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