DbConnection
E827336
DbConnection is an abstract base class in ADO.NET that represents a connection to a data source, providing a common interface for database-specific connection implementations.
Observed surface forms (1)
| Surface form | Occurrences |
|---|---|
| SqlConnection | 1 |
Statements (51)
| Predicate | Object |
|---|---|
| instanceOf |
ADO.NET class
ⓘ
abstract base class ⓘ |
| belongsToFramework |
.NET (5+) runtime
NERFINISHED
ⓘ
.NET Core NERFINISHED ⓘ .NET Framework NERFINISHED ⓘ |
| cannotBeInstantiatedDirectly | true ⓘ |
| category | data access API ⓘ |
| definedIn |
System.Data.Common namespace (for base type)
ⓘ
System.Data.dll NERFINISHED ⓘ |
| extendedBy |
MySqlConnection
NERFINISHED
ⓘ
NpgsqlConnection ⓘ OdbcConnection ⓘ OleDbConnection NERFINISHED ⓘ OracleConnection NERFINISHED ⓘ SqlConnection ⓘ |
| hasMethod |
BeginTransaction()
ⓘ
BeginTransaction(IsolationLevel) ⓘ ChangeDatabase(string databaseName) ⓘ Close() ⓘ CreateCommand() ⓘ EnlistTransaction(Transaction) ⓘ GetSchema() ⓘ GetSchema(string collectionName) ⓘ GetSchema(string collectionName, string[] restrictionValues) ⓘ Open() ⓘ OpenAsync() ⓘ |
| hasProperty |
ConnectionString
ⓘ
ConnectionTimeout ⓘ Container ⓘ DataSource ⓘ Database ⓘ ServerVersion ⓘ Site ⓘ State ⓘ |
| implements |
IAsyncDisposable (in newer .NET versions via derived types)
ⓘ
IDbConnection ⓘ IDisposable ⓘ |
| inheritsFrom | Component ⓘ |
| introducedIn | .NET Framework 1.0 NERFINISHED ⓘ |
| isAbstract | true ⓘ |
| isSubclassOf | MarshalByRefObject ⓘ |
| partOf |
ADO.NET data provider model
NERFINISHED
ⓘ
System.Data namespace NERFINISHED ⓘ |
| provides | common interface for database connections ⓘ |
| threadSafety | not guaranteed to be thread-safe for instance members ⓘ |
| usedFor |
closing database connections
ⓘ
creating database commands ⓘ managing database connection state ⓘ opening database connections ⓘ participating in database transactions ⓘ representing a connection to a data source ⓘ |
Referenced by (2)
Full triples — surface form annotated when it differs from this entity's canonical label.
this entity surface form:
SqlConnection