DataConnection Members

Represents a connection to a data store.

Constructors

Name Description
DataConnection()

Initializes a new instance of the DataConnection class with default settings.

DataConnection(String, DataConnectionParametersBase)

Initializes a new instance of the DataConnection class.

Properties

Name Description
ConnectionParameters Provides access to the data connection parameters of the SqlDataConnection.
(Inherited from SqlDataConnection)
ConnectionString Specifies the connection string of the SqlDataConnection.
(Inherited from SqlDataConnection)
ConnectionStringSerializable For internal use.
(Inherited from SqlDataConnection)
HasConnectionString Specifies whether the connection string has been assigned to the data connection.
(Inherited from DataConnectionBase)
IsConnected Indicates whether or not the data connection is currently active.
(Inherited from SqlDataConnection)
Name Gets or sets the name of a data connection.
(Inherited from DataConnectionBase)
ParametersSerializable For internal use. Use the DataConnectionBase.CreateDataConnectionParameters method instead.
(Inherited from SqlDataConnection)
ProviderKey Identifies the data store provider.
(Inherited from SqlDataConnection)
StoreConnectionNameOnly Specifies whether to serialize any connection settings except for the data connection name.
(Inherited from DataConnectionBase)

Methods

Name Description
AddReference()

For internal use.

BlackoutCredentials() Removes user credentials from the connection string generated for the current SqlDataConnection.
(Inherited from SqlDataConnection)
Close() Closes the connection to a SQL data source.
(Inherited from SqlDataConnection)
CreateConnectionString() Generates a connection string out of the connection parameters assigned to the SqlDataConnection.
(Inherited from SqlDataConnection)
CreateConnectionString(Boolean) Generates a connection string out of the connection parameters assigned to the SqlDataConnection (with or without including user credentials into the connection string).
(Inherited from SqlDataConnection)
CreateDataConnectionParameters() Creates a container storing the data connection parameters.
(Inherited from SqlDataConnection)
Dispose() Releases all resources used by SqlDataConnection.
(Inherited from SqlDataConnection)
Equals(Object) Determines whether the specified object is equal to the current object.
(Inherited from Object)
Equals(Object, Object) Determines whether the specified object instances are considered equal.
(Inherited from Object)
GetDBSchema() Returns the schema of the data source that is connected using the current SqlDataConnection.
(Inherited from SqlDataConnection)
GetDBSchema(Boolean) Returns the schema of the data source that is connected using the current SqlDataConnection.
(Inherited from SqlDataConnection)
GetDBSchema(Boolean, SchemaLoadingMode) Returns the schema of an SQL data source.
(Inherited from SqlDataConnection)
GetDBSchema(String[]) Returns the schema of the data source that is connected using the current SqlDataConnection.
(Inherited from SqlDataConnection)
GetHashCode() Serves as the default hash function.
(Inherited from Object)
GetType() Gets the of the current instance.
(Inherited from Object)
LoadDBColumns(DBTable[]) Loads columns from the specified tables.
(Inherited from SqlDataConnection)
MemberwiseClone() Creates a shallow copy of the current .
(Inherited from Object)
Open() Opens the data connection session.
(Inherited from DataConnectionBase)
ReferenceEquals(Object, Object) Determines whether the specified instances are the same instance.
(Inherited from Object)
RemoveReference()

For internal use.

ToString() Returns a string that represents the current object.
(Inherited from Object)
See Also