Interface IDataSource

An interface implemented by data source objects. This interface exists primarily for COM interop.


public abstract interface IDataSource

Interface Members

MemberDescription

AddConnection

Adds a new connection object of the passed in type for the passed in database. Returns a generic object for the connection. Intended for use from COM.

public IConnectionFactory AddConnection(string databasename,
    ConnectionSource type);

DeserializeConnections

Deserializes the connection factory objects for this Datasource.

public void DeserializeConnections(XmlReader reader);

public void DeserializeConnections(XmlNode node)

DeserializeRoles

Deserialize the role information for this DataSource.

public void DeserializeRoles(XmlReader reader);

GetConnection

Returns an object given a database name. Intended for use from COM.

public object GetConnection(string databasename);

SerializeConnections

Serializes the connection factory objects for this Datasource.

public void SerializeConnections(XmlWriter writer);

SerializeRoles

Serialize the role information for this DataSource.

public void SerializeRoles(XmlWriter writer);

TestConnections

Tests all connections.

public bool TestConnections();

TestTableForConnection

Test the specified connection to ensure the database has the specified table.

public bool TestTableForConnection(IConnection connection,
    IDatabase database,
    ITable table);

Description

The descriptive name for the data source (the name the user sees).

Error

The message of any errors that occur during connection.

Item

Name

The name of the data source. Must be unique.

Roles

The roles that can access this DataSource.

Requirements

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