IDataConnection Interface
Defines properties and methods that represent the data connection.
Namespace: Microsoft.SqlServerCe.Management.Scripting
Assembly: Microsoft.SqlServerCe.Management.Scripting (in Microsoft.SqlServerCe.Management.Scripting.dll)
Syntax
'Declaration
Public Interface IDataConnection _
Inherits IDisposable
'Usage
Dim instance As IDataConnection
public interface IDataConnection : IDisposable
public interface class IDataConnection : IDisposable
type IDataConnection =
interface
interface IDisposable
end
public interface IDataConnection extends IDisposable
The IDataConnection type exposes the following members.
Properties
Name | Description | |
---|---|---|
ConnectionString | Gets the connection string for the data connection. | |
Database | Gets the name of the database. | |
InternalConnection | Gets the internal connection (the ADO.NET provider independent connection instance) for the connection. |
Top
Methods
Name | Description | |
---|---|---|
CloseConnection | Closes the connection of the database if the connection is not already closed. | |
Connect | Opens the connection to the database. | |
Dispose | (inherited from IDisposable) | |
InstantiateDataAdapter | Instantiates a new database data adapter instance. |
Top