Class ConnectionFactory

Stores connection details for a particular database, and uses those details to create the appropriate type of connection.

System.Object
  Stonefield.Query.ConnectionManagement.ConnectionFactory
public abstract class ConnectionFactory : object, IConnectionFactory

Class Members

MemberDescription

Constructor

Constructor.

CreateConnection

Uses the connection information stored in this factory to create an appropriate connection object.

public abstract IConnection CreateConnection();

Deserialize

Initialize the connection in this factory using an XML reader pointing to serialized XML data.

public abstract void Deserialize(XmlReader reader);

public abstract void Deserialize(XmlNode node)

Serialize

Writes the connection information stored in this factory to an XML Writer.

public abstract void Serialize(XmlWriter writer);

CommandTimeout

The timeout time on seconds for any command executed against connections from this factory

Database

The name of the physical database this connection connects to. In the case of file-based database engines such as Visual FoxPro and Access, this must include the path to the database. For text file accesss, this must contain the path for the files.

DatabaseAliases

Contains database aliases to use instead of the standard prefixes in the project. If another database in the datasource is sharing a connection with this factory and the underlying database name is different than how it appears in the project for that connection instance, then add an alias for it to this list.

DataDictionaryDatabase

A reference to the Stonefield.Query.DataDictionary.IDatabase object this factory is associated with.

Datasource

The data source this connection is linked to

Roles

A collection of roles that can access this datasource.

Type

The type of the connection.

UserDefined

This property can contain anything you want to place in it.

Requirements

Namespace: Stonefield.Query.ConnectionManagement
Assembly: connections.dll