![]() | LoginProducts Sales Support Downloads About |
| Home » Technical Support » ElevateDB Technical Support » Product Manuals » ElevateDB Version 2 Data Access Components Manual » .NET Data Provider Reference » EDBConnection Class |
EDBConnection Class| Property | Description |
| EngineVersion: String | Indicates the current version of ElevateDB being used. This property is read-only. |
| InTransaction: Boolean | Use the InTransaction property at run-time to determine if a transaction is currently in progress for the current connection. The InTransaction property is True if a transaction is in progress and False if a transaction is not in progress. The value of the InTransaction property cannot be changed directly. Calling the EDBConnection BeginTransaction method sets the InTransaction property to True. Calling the EDBTransaction Commit or EDBTransaction Rollback methods sets the InTransaction property to False. |
| ReadOnly: Boolean | Indicates whether the current connection is using read-only access only. |
| Method | Description |
| Clone: System.Object | Clones the current connection, including current contents of the ConnectionString property. |
| BeginTransaction(array of String): DbTransaction | Starts a restricted transaction for the current connection. Please see the Transactions topic for more information on restricted transactions. |
| Event | Description |
| OnLogin: EDBLoginEvent | Setting this event adds an event handler to the list of event handlers listening for the OnLogin event when the connection is first opened. The arguments for the event handler are defined in the EDBLoginEventArgs class. The OnLogin event is used to augment the login process and programmtically supply the user name and password used with the login. It can also be used to display a custom interactive login dialog whenever a connection is first opened. The OnLogin event is only triggered when either the user name (UID attribute) or password (PWD attribute) are missing from the connection string used with the connection. Please see the Connection Strings topic for more information on the UID and PWD connection string attributes. |
| OnTimeout: EDBTimeoutEvent | Setting this event adds an event handler to the list of event handlers listening for the OnTimeout event while the current connection is connected to an ElevateDB Server. The arguments for the event handler are defined in the EDBTimeoutEventArgs class. The OnTimeout event is used to deal with situations where the connection is waiting on a response from an ElevateDB Server, and the wait time has exceeded the timeout (TIMEOUT attribute) defined for the connection in the connection string. Setting the StayConnected property of the event arguments to False will cause the connection to disconnect from the ElevateDB Server, whereas leaving the StayConnected property of the event arguments to True will keep the connection connected to the ElevateDB Server. Please see the Connection Strings topic for more information on the TIMEOUT connection string attribute. |
| OnReconnect: EDBReconnectEvent | Setting this event adds an event handler to the list of event handlers listening for the OnReconnect event while the current connection is connected to an ElevateDB Server. The arguments for the event handler are defined in the EDBReconnectEventArgs class. The OnReconnect event is called whenever the connection needs to be re-established automatically due to a drop in the connection or a timeout (see OnTimeout event above). This event usually only occurs when the connection was not configured to ping the ElevateDB Server at regular intervals in the connection string (PING attribute set to False). In such a case, the ElevateDB Server may timeout the connection and disconnect it (but not remove it), resulting in the OnReconnect event being triggered the next time the connection tries to send a request to the ElevateDB Server. Please see the Connection Strings topic for more information on the PING connection string attribute. |
| OnSendProgress: EDBCommsProgressEvent | Setting this event adds an event handler to the list of event handlers listening for the OnSendProgress event while the current connection is connected to an ElevateDB Server. The arguments for the event handler are defined in the EDBCommsProgressEventArgs class. The OnSendProgress event is called whenever the connection needs to send a request to an ElevateDB Server, and may be called multiple times for a single request, depending upon the size of the request. |
| OnReceiveProgress: EDBCommsProgressEvent | Setting this event adds an event handler to the list of event handlers listening for the OnReceiveProgress event while the current connection is connected to an ElevateDB Server. The arguments for the event handler are defined in the EDBCommsProgressEventArgs class. The OnReceiveProgress event is called whenever the connection receives a response to a request from an ElevateDB Server, and may be called multiple times for a single response, depending upon the size of the response. |
| OnTrace: EDBTraceEvent | Setting this event adds an event handler to the list of event handlers listening for the OnTrace event while the current connection is connected to an ElevateDB Server. The arguments for the event handler are defined in the EDBTraceEventArgs class. The OnTrace event is called whenever the connection sends a request to an ElevateDB Server or receives a response to a request from an ElevateDB Server. It is useful for tracing the activity for a connection to help determine performance bottlenecks, especially over WANs (wide-area networks) like the Internet. |
| This web page was last updated on Saturday, September 4, 2010 at 01:06 PM Valid HTML 4.01 Valid CSS | Privacy Policy Site Map© 2010 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |


