DbConnection Methods
.NET Framework 2.0
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
| BeginTransaction | Overloaded. Starts a database transaction. |
| ChangeDatabase | Changes the current database for an open connection. |
| Close | Closes the connection to the database. This is the preferred method of closing any open connection. |
| CreateCommand | Creates and returns a DbCommand object associated with the current connection. |
| CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
| Dispose | Overloaded. Releases the resources used by the Component. (Inherited from Component.) |
| EnlistTransaction | Enlists in the specified transaction. |
| Equals | Overloaded. Determines whether two Object instances are equal. (Inherited from Object.) |
| GetHashCode | Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) |
| GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
| GetSchema | Overloaded. Returns schema information for the data source of this DbConnection. |
| GetType | Gets the Type of the current instance. (Inherited from Object.) |
| InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
| Open | Opens a database connection with the settings specified by the ConnectionString. |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object.) |
| ToString | Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.) |
| Name | Description | |
|---|---|---|
| BeginDbTransaction | Starts a database transaction. |
| CreateDbCommand | Creates and returns a DbCommand object associated with the current connection. |
| Dispose | Overloaded. Releases the resources used by the Component. (Inherited from Component.) |
| Finalize | Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.) |
| GetService | Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component.) |
| MemberwiseClone | Overloaded. (Inherited from MarshalByRefObject.) |
| OnStateChange | Raises the StateChange event. |
| Name | Description | |
|---|---|---|
| System.Data.IDbConnection.BeginTransaction | Overloaded. |
| System.Data.IDbConnection.CreateCommand | For a description of this member, see IDbConnection.CreateCommand. |