Class ConnectionManager

This class manages the persistance and initialization of a data source collection.

System.Object
  Stonefield.Query.ConnectionManagement.ConnectionManager
public class ConnectionManager : object, IConnectionManager

Class Members

MemberDescription

Constructor

GetDataSources

Get the datasources. This can be from a datasources.exml file, a GetDataSources plugin, or from the information entered as default connection info in Stonefield Query Enterprise Studio.

public sealed bool GetDataSources();

ReloadDataSources

Reloads all data sources

public sealed void ReloadDataSources();

SaveCollection

Save the current data source collection to configpath\datasources.exml (including role information). Note that ONLY databases marked as "user can manage" have complete information persisted to file when this method is called. It is expected that data sources populated via a script will be re-populated at next startup as necessary. However, the roles for all datasources are persisted.

public sealed void SaveCollection();

DataSources

The datasources collection.

NeedSetup

Indicates whether or not we need to show a setup dialog to gather DSN information from the user.

Requirements

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