C# 클래스 FdoToolbox.Base.Services.FdoConnectionManager

Manages FDO connections.
상속: IFdoConnectionManager
파일 보기 프로젝트 열기: jumpinjackie/fdotoolbox 1 사용 예제들

공개 메소드들

메소드 설명
AddConnection ( string name, FdoToolbox conn ) : void

Adds a FDO connection.

CanRenameConnection ( string oldName, string newName ) : ConnectionRenameResult

Determines whether this this connection can be renamed to the specified name

Clear ( ) : void

Removes all connections

GetConnection ( string name ) : FdoConnection

Gets the connection.

GetConnection ( string provider, string connStr ) : FdoConnection

Gets the connection by provider and connection string

GetConnectionNames ( ) : ICollection

Gets the connection names.

GetName ( FdoConnection conn ) : string

Gets the name of a connection

InitializeService ( ) : void

Initializes the service.

Load ( ) : void

Load all persisted connections from the session directory

NameExists ( string name ) : bool

Determines whether a connection exists (by name)

RefreshConnection ( string name ) : void

Refreshes the connection.

RemoveConnection ( string name ) : void

Removes the connection.

RenameConnection ( string oldName, string newName ) : void

Renames a connection.

Save ( ) : void

Saves all currently loaded connections to the session directory

UnloadService ( ) : void

Unloads the service.

메소드 상세

AddConnection() 공개 메소드

Adds a FDO connection.
public AddConnection ( string name, FdoToolbox conn ) : void
name string The name of the connection.
conn FdoToolbox The connection.
리턴 void

CanRenameConnection() 공개 메소드

Determines whether this this connection can be renamed to the specified name
public CanRenameConnection ( string oldName, string newName ) : ConnectionRenameResult
oldName string The old name.
newName string The new name.
리턴 ConnectionRenameResult

Clear() 공개 메소드

Removes all connections
public Clear ( ) : void
리턴 void

GetConnection() 공개 메소드

Gets the connection.
public GetConnection ( string name ) : FdoConnection
name string The name of the connection.
리턴 FdoToolbox.Core.Feature.FdoConnection

GetConnection() 공개 메소드

Gets the connection by provider and connection string
public GetConnection ( string provider, string connStr ) : FdoConnection
provider string The provider.
connStr string The connection string.
리턴 FdoToolbox.Core.Feature.FdoConnection

GetConnectionNames() 공개 메소드

Gets the connection names.
public GetConnectionNames ( ) : ICollection
리턴 ICollection

GetName() 공개 메소드

Gets the name of a connection
public GetName ( FdoConnection conn ) : string
conn FdoToolbox.Core.Feature.FdoConnection The connection.
리턴 string

InitializeService() 공개 메소드

Initializes the service.
public InitializeService ( ) : void
리턴 void

Load() 공개 메소드

Load all persisted connections from the session directory
public Load ( ) : void
리턴 void

NameExists() 공개 메소드

Determines whether a connection exists (by name)
public NameExists ( string name ) : bool
name string The name of the connection
리턴 bool

RefreshConnection() 공개 메소드

Refreshes the connection.
public RefreshConnection ( string name ) : void
name string The name of the connection.
리턴 void

RemoveConnection() 공개 메소드

Removes the connection.
public RemoveConnection ( string name ) : void
name string The name of the connection.
리턴 void

RenameConnection() 공개 메소드

Renames a connection.
public RenameConnection ( string oldName, string newName ) : void
oldName string The old name.
newName string The new name.
리턴 void

Save() 공개 메소드

Saves all currently loaded connections to the session directory
public Save ( ) : void
리턴 void

UnloadService() 공개 메소드

Unloads the service.
public UnloadService ( ) : void
리턴 void