AbstractDataConnection MembersKentico 8.1 API Reference
The AbstractDataConnection type exposes the following members.
Constructors

  NameDescription
Protected methodAbstractDataConnection
Constructor.
Back to Top
Methods

  NameDescription
Protected methodAddParameters
Adds the given parameters to the SQL command
Public methodBeginTransaction 
Begins a new transaction.
Public methodBeginTransaction(IsolationLevel)
Begins a new transaction.
Public methodBulkInsert
Performs a bulk insert of the data into a target database table
Public methodClose
Closes connection to the database.
Public methodCommitTransaction
Commits current transaction.
Protected methodCreateCommand
Creates a new SQL command
Protected methodCreateDataAdapter
Creates a data adapter
Protected methodCreateNativeConnection
Creates a new native connection
Protected methodCreateParameter(DataParameter)
Creates a SQL parameter from the given data parameter
Protected methodCreateParameter(String, Object)
Creates a new command parameter
Public methodDispose
Disposes the connection object.
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Public methodExecuteNonQuery
Returns result of the query.
Public methodExecuteQuery
Returns result of the query.
Public methodExecuteReader
Returns result of the query as a Data reader. Keeps the connection open.
Public methodExecuteScalar
Returns a single value result of the query.
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodGetExecutingConnection
Gets the connection that executes the given query
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodGetNestedConnection
Gets the nested connection with the given connection string
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Public methodGetXmlSchema
Returns XML schema for specified table.
Protected methodHandleDbError
Handles the database error. Returns false, if the error was not handled
Protected methodHandleError
Handles the error. Returns false, if the error was not handled
Protected methodCheckThreadSafety
Checks the thread safety of current operation.
Public methodIsOpen
Returns true if connection to the database is open.
Public methodIsTransaction
Indicates if transaction is running.
Protected methodLoadDefaultConnectionString
Loads the default connection string
Public methodLogConnectionOperation
Logs the connection operation to the query log.
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Public methodNativeConnectionExists
Returns true if the native connection exists.
Public methodNativeDBConnectionExists
Returns true if the native connection exists.
Public methodOpen
Opens connection to the database.
Protected methodPrepareCommand
Prepares the SQL command for the query.
Public methodRollbackTransaction
Rollbacks current transaction.
Protected methodSetParameterType
Sets the parameter type to a destination type
Public methodOnlineToString
Returns a string that represents the current object.
(Inherited from OnlineObject.)
Protected methodValidateTransaction
Validates the transaction
Back to Top
Extension Methods

  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Back to Top
Fields

  NameDescription
Protected fieldmAdvancedSettings
Advanced settings.
Protected fieldmCommandTimeout
Command timeout.
Protected fieldmConnectionCreated
If true, the connection was created from this object
Protected fieldmConnectionString
Connection string for specific provider.
Protected fieldmConnectionStringName
Connection string name
Protected fieldmLastError
Last connection error
Protected fieldmLocalTransaction
SqlTransaction object.
Protected fieldmNativeConnection
Native connection object. It depends on provider type.
Protected fieldmNestedConnections
Nested connections indexed by the connection string [connectionString -> IDbConnection]
Protected fieldmNestedConnectionsList
List of nested connections
Protected fieldmNestedOpenConnections
List of nested connections that were automatically opened
Protected fieldmNestedOpenTransactions
List of nested connections that were automatically opened with transaction
Protected fieldmOriginalThreadID
Original thread ID of the connection.
Protected fieldmUseScopeConnection
If true, the connection uses the scope connection
Back to Top
Properties

  NameDescription
Public propertyAdvancedSettings
Advanced settings.
Public propertyCommandTimeout
Command timeout.
Public propertyConnectionCreated
If true, some connection was used
Public propertyConnectionGUID
Connection GUID
Public propertyConnectionString
Connection string for specific provider.
Public propertyConnectionStringName
Connection string name
Public propertyDisableConnectionDebug
If true, the debug is disabled on this connection
Public propertyDisableQueryDebug
If true, the debug of queries is disabled on this connection
Public propertyKeepOpen
If true, the connection stays open even if close is requested.
Protected propertyLocalAdvancedSettings
Local advanced settings.
Protected propertyLocalKeepOpen
If true, the connection stays open even if close is requested.
Protected propertyLocalTransaction
Transaction object of local instance.
Public propertyNativeConnection
Native connection object. It depends on provider type.
Protected propertyNativeDBConnection
Native connection object. It depends on provider type.
Public propertyTransaction
Transaction object.
Public propertyUseScopeConnection
If true, the connection uses the scope connection
Back to Top
See Also