C# Class MongoDataSource.MongoConnectionManager

Inheritance: ConnectionManagerBase
ファイルを表示 Open project: simplybusiness/mongosis Class Usage Examples

Public Methods

Method 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

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

Method Details

AcquireConnection() public method

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

CanUpdate() public method

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.
return bool

ReleaseConnection() public method

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.
return void

Update() public method

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.
return void

Validate() public method

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.
return Microsoft.SqlServer.Dts.Runtime.DTSExecResult