C# Class MongoDataSource.MongoConnectionManager

Inheritance: ConnectionManagerBase
Afficher le fichier Open project: simplybusiness/mongosis Class Usage Examples

Méthodes publiques

Méthode Description
AcquireConnection ( object txn ) : object

Creates an instance of the connection type.

CanUpdate ( string CreationName ) : bool

Gets or sets a Boolean that determines whether a connection manager supports upgrading the connection XML to a newer version.

ReleaseConnection ( object connection ) : void

Frees the connection established during Microsoft.SqlServer.Dts.Runtime.ConnectionManagerBase.AcquireConnection(System.Object). Called at design time and run time.

Update ( string &ObjectXml ) : void

Updates the XML persisted by a previous version of the connection manager.

Validate ( Microsoft infoEvents ) : Microsoft.SqlServer.Dts.Runtime.DTSExecResult

Validates the connection and returns an enumeration that indicates success or failure.

Private Methods

Méthode Description
HandleValidationError ( Microsoft infoEvents, string message ) : Microsoft.SqlServer.Dts.Runtime.DTSExecResult
UpdateConnectionString ( ) : void

Method Details

AcquireConnection() public méthode

Creates an instance of the connection type.
public AcquireConnection ( object txn ) : object
txn object The handle to a transaction object. (optional)
Résultat object

CanUpdate() public méthode

Gets or sets a Boolean that determines whether a connection manager supports upgrading the connection XML to a newer version.
public CanUpdate ( string CreationName ) : bool
CreationName string The name of the connection to upgrade.
Résultat bool

ReleaseConnection() public méthode

Frees the connection established during Microsoft.SqlServer.Dts.Runtime.ConnectionManagerBase.AcquireConnection(System.Object). Called at design time and run time.
public ReleaseConnection ( object connection ) : void
connection object The connection to release.
Résultat void

Update() public méthode

Updates the XML persisted by a previous version of the connection manager.
public Update ( string &ObjectXml ) : void
ObjectXml string The XML used to update the connection manager XML.
Résultat void

Validate() public méthode

Validates the connection and returns an enumeration that indicates success or failure.
public Validate ( Microsoft infoEvents ) : Microsoft.SqlServer.Dts.Runtime.DTSExecResult
infoEvents Microsoft An object that implements the Microsoft.SqlServer.Dts.Runtime.IDTSInfoEvents events interface to raise errors, warning, or informational events.
Résultat Microsoft.SqlServer.Dts.Runtime.DTSExecResult