See Also

UniConnection Class  | Devart.Data.Universal Namespace  | UniDataAdapter Class  | UniCommand Class

See AlsoDevart.Data.UniversalSend comments on this topic.

UniConnection Class Members

Devart.Data.Universal Namespace : UniConnection Class

UniConnection overview

Public Constructors

Public Constructor UniConnection ConstructorOverloaded. Initializes a new instance of the UniConnection class.

Public Properties

Public Property ConnectionStringOverridden. Gets or sets the string used to open a server connection.
Public Property ConnectionTimeoutOverridden. Gets the time to wait while trying to establish a connection before terminating the attempt and generating an error.
Public Property Container (Inherited from System.ComponentModel.Component)Gets the IContainer that contains the Component.
Public Property DatabaseGets or sets the name of the current database or the database to be used once a connection is open.
Public Property DataSourceGets or sets name of the data source.
Public Property InDistributedTransaction (Inherited from Devart.Common.DbConnectionBase)Indicates whether the connection is enlisted in a distributed transaction.
Public Property MacrosGets collection of macros used in UniSQL statements.
Public Property NameGets or sets the name of component that will be displayed in DBMonitor application.
Public Property Owner (Inherited from Devart.Common.DbConnectionBase)Gets or sets a form or other container that the DbConnectionBase instance belongs to.
Public Property PasswordGets or sets the user's password to connect.
Public Property Port 
Public Property ProviderGets or sets the name of the ADO.NET data provider used to access actual data.
Public Property ProviderIntfReturns the IUniProvider interface, which allows to manipulate any provider in run time.
Public Property ServerVersionOverridden. Gets a string containing the version of the instance of server to which the client is connected.
Public Property Site (Inherited from System.ComponentModel.Component)Gets or sets the ISite of the Component.
Public Property StateGets the current state of the connection.
Public Property UserIdGets or sets the name of the user to connect.

Public Methods

Public Method BeginOpen (Inherited from Devart.Common.DbConnectionBase)Starts an asynchronous invocation of an Open method.
Public Method BeginTransactionOverloaded. Begins a transaction at the database.
Public Method ChangeDatabaseOverridden. Changes the current database associated with an open UniConnection.
Public Methodstatic (Shared in Visual Basic) ClearAllPoolsOverloaded. Clears all pools associated with the connection.
Public Methodstatic (Shared in Visual Basic) ClearPoolClears the pool matching UniConnection.ConnectionString of provided UniConnection object.
Public Method CloneCreates a new object that is a copy of the current instance.
Public Method CloseOverridden. Closes the connection to the database. This is the preferred method of closing any open connection.
Public Method CommitCommits the database transaction.
Public Method CreateCommandCreates and returns a UniCommand object associated with the UniConnection.
Public Method CreateObjRef (Inherited from System.MarshalByRefObject)Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
Public Method Dispose (Inherited from System.ComponentModel.Component)Releases all resources used by the Component.
Public Method EndOpen (Inherited from Devart.Common.DbConnectionBase)Ends an asynchronous invocation of the Open method.
Public Method EnlistTransactionOverridden. Enlists in the specified transaction.
Public Method GetLifetimeService (Inherited from System.MarshalByRefObject)Retrieves the current lifetime service object that controls the lifetime policy for this instance.
Public Method GetSchema (Inherited from Devart.Common.DbConnectionBase)Overloaded. Provides information about server schema objects.
Public Method InitializeLifetimeService (Inherited from System.MarshalByRefObject)Obtains a lifetime service object to control the lifetime policy for this instance.
Public Method OpenOverridden. Opens a database connection with the property settings specified by the UniConnection.ConnectionString.
Public Method RollbackRolls back a transaction from a pending state.
Public Method ToString (Inherited from System.ComponentModel.Component)Returns a String containing the name of the Component, if any. This method should not be overridden.

Public Events

Public Event Disposed (Inherited from System.ComponentModel.Component)Occurs when the component is disposed by a call to the Dispose method.
Public Event InfoMessageOccurs when server returns a warning or informational message.
Public Event StateChangeOccurs when the state of the connection changes.
Public Event TransactionStateChanged (Inherited from Devart.Common.DbConnectionBase)Occurs when the state of the transaction is changed.
Public Event TransactionStateChanging (Inherited from Devart.Common.DbConnectionBase)Occurs when the state of the transaction is changing.

See Also

UniConnection Class  | Devart.Data.Universal Namespace  | UniDataAdapter Class  | UniCommand Class

 

 


© 2002 - 2013 Devart. All Rights Reserved.