DotNetDupe
4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Toggle main menu visibility
Loading...
Searching...
No Matches
DbConnection.h
Go to the documentation of this file.
1
#pragma once
2
#include "
Common.h
"
3
#include "
System/Object.h
"
4
#include "
System/String.h
"
5
#include "
System/SmartPointer.h
"
6
#include "
System/Data/Common/DbCommand.h
"
7
8
namespace
DotNetDupe
{
9
namespace
System
{
10
namespace
Data
{
11
namespace
Common
{
12
22
class
DbConnection
:
public
virtual
DotNetDupe::System::Object
{
23
public
:
25
DbConnection
() =
default
;
26
28
~DbConnection
()
override
=
default
;
29
32
virtual
DotNetDupe::System::String
GetConnectionString
()
const
= 0;
33
36
virtual
void
SetConnectionString
(
const
DotNetDupe::System::String
& sConnStr) = 0;
37
40
virtual
void
Open
() = 0;
41
43
virtual
void
Close
() = 0;
44
47
virtual
DotNetDupe::System::SmartPointer<DbCommand>
CreateCommand
() = 0;
48
};
49
50
}
51
}
52
}
53
}
Common.h
Defines common cross-platform macros, export decorators, and fundamental types.
DbCommand.h
Object.h
Base object class for DotNetDupe mirroring .NET System.Object.
SmartPointer.h
Provides reference-counted and weak pointer memory management primitives ensuring zero raw ownership.
String.h
High-performance UTF-8 / UTF-16 string manipulation class mirroring .NET System.String.
DotNetDupe::System::Data::Common::DbConnection::~DbConnection
~DbConnection() override=default
Virtual destructor ensuring clean disposal of connection resources.
DotNetDupe::System::Data::Common::DbConnection::DbConnection
DbConnection()=default
Initializes a new instance of the DbConnection class.
DotNetDupe::System::Data::Common::DbConnection::GetConnectionString
virtual DotNetDupe::System::String GetConnectionString() const =0
Gets the string used to open a connection to the data source.
DotNetDupe::System::Data::Common::DbConnection::CreateCommand
virtual DotNetDupe::System::SmartPointer< DbCommand > CreateCommand()=0
Creates and returns a DbCommand object associated with the current connection.
DotNetDupe::System::Data::Common::DbConnection::SetConnectionString
virtual void SetConnectionString(const DotNetDupe::System::String &sConnStr)=0
Sets the string used to open a connection to the data source.
DotNetDupe::System::Data::Common::DbConnection::Close
virtual void Close()=0
Closes the connection to the data source and releases internal resources.
DotNetDupe::System::Data::Common::DbConnection::Open
virtual void Open()=0
Opens a database connection with the settings specified by the ConnectionString.
DotNetDupe::System::Object
Supports all classes in the DotNetDupe class hierarchy.
Definition
Object.h:18
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::Common
Definition
DbCommand.h:12
DotNetDupe::System::Data
Definition
DbCommand.h:11
DotNetDupe::System
Definition
Action.h:11
DotNetDupe
Definition
IServiceCollection.h:7
Include
System
Data
Common
DbConnection.h
Generated by
1.18.0