DatabaseConnection Class

Relativity Event Handlers
Creates database connection instances.
Inheritance Hierarchy

System.Object
  System.MarshalByRefObject
    kCura.EventHandler.DatabaseConnection

Namespace:  kCura.EventHandler
Assembly:  kCura.EventHandler (in kCura.EventHandler.dll) Version: 17.0.1.1 588f15fd7550dbf54835f3417a0142d4ea37dbb5
Syntax

public class DatabaseConnection : MarshalByRefObject

public class DatabaseConnection : MarshalByRefObject

The DatabaseConnection type exposes the following members.

Methods

  NameDescription
Public methodBeginTransaction
Opens a database connection and starts a database transaction.
Public methodCommitTransaction
Commits the database transaction.
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExecuteAsDataSet
Executes a Transact-SQL statement against the connection and returns a dataset object.
Public methodExecuteAsScalar
Executes the query, and returns the first column of the first row in the result set returned by the query. Additional columns or rows are ignored.
Public methodExecuteNonQuery
Executes a Transact-SQL statement against the connection and returns the number of rows affected.
Public methodGetCaseDatabasePrependString(Int32)
Returns a prepend string value for a given case database based on application ID.
Public methodGetCaseDatabasePrependString(Int32, Boolean)
Returns a prepend string value for a given case database based on application ID and a Boolean flag indicating whether the schema name should be used.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodGetMasterPrependString()
Returns a prepend string value for a master database.
Public methodGetMasterPrependString(Boolean)
Returns a prepend string value for a master database based on boolean flag indicating if schema name should be used.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodRollbackTransaction
Rolls back a database transaction from a pending state.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

See Also

Reference