Interface IConnectionFactory

An interface implemented by objects that can be a connection factory. A connection factory stores connection details for a particular database, and uses those details to create the appropriate type of connection.


public abstract interface IConnectionFactory

Interface Members

MemberDescription

CreateConnection

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

public IConnection CreateConnection();

Deserialize

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

public void Deserialize(XmlReader reader);

public void Deserialize(XmlNode node)

Serialize

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

public void Serialize(XmlWriter writer);

CommandTimeout

The timeout time in 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 access using the Jet driver, this must contain the path for the files.

DataDictionaryDatabase

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

Datasource

The data source this factory is linked to

Roles

A collection of roles that can access this datasource.

Type

The type of the data source.

UserDefined

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

Requirements

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