The AbstractDataConnection type exposes the following members.
Back to Top
Back to Top
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
AbstractDataConnection |
Constructor.
|
Methods
Name | Description | |
---|---|---|
AddParameters |
Adds the given parameters to the SQL command
| |
BeginTransaction |
Begins a new transaction.
| |
BeginTransaction(IsolationLevel) |
Begins a new transaction.
| |
BulkInsert |
Performs a bulk insert of the data into a target database table
| |
Close |
Closes connection to the database.
| |
CommitTransaction |
Commits current transaction.
| |
CreateCommand |
Creates a new SQL command
| |
CreateDataAdapter |
Creates a data adapter
| |
CreateNativeConnection |
Creates a new native connection
| |
CreateParameter(DataParameter) |
Creates a SQL parameter from the given data parameter
| |
CreateParameter(String, Object) |
Creates a new command parameter
| |
Dispose |
Disposes the connection object.
| |
Equals | (Inherited from Object.) | |
ExecuteNonQuery |
Returns result of the query.
| |
ExecuteQuery |
Returns result of the query.
| |
ExecuteReader |
Returns result of the query as a Data reader. Keeps the connection open.
| |
ExecuteScalar |
Returns a single value result of the query.
| |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetExecutingConnection |
Gets the connection that executes the given query
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetNestedConnection |
Gets the nested connection with the given connection string
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetXmlSchema |
Returns XML schema for specified table.
| |
HandleDbError |
Handles the database error. Returns false, if the error was not handled
| |
HandleError |
Handles the error. Returns false, if the error was not handled
| |
CheckThreadSafety |
Checks the thread safety of current operation.
| |
IsOpen |
Returns true if connection to the database is open.
| |
IsTransaction |
Indicates if transaction is running.
| |
LoadDefaultConnectionString |
Loads the default connection string
| |
LogConnectionOperation |
Logs the connection operation to the query log.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
NativeConnectionExists |
Returns true if the native connection exists.
| |
NativeDBConnectionExists |
Returns true if the native connection exists.
| |
Open |
Opens connection to the database.
| |
PrepareCommand |
Prepares the SQL command for the query.
| |
RollbackTransaction |
Rollbacks current transaction.
| |
SetParameterType |
Sets the parameter type to a destination type
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
ValidateTransaction |
Validates the transaction
|
Extension Methods
Name | Description | |
---|---|---|
GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |
Fields
Name | Description | |
---|---|---|
mAdvancedSettings |
Advanced settings.
| |
mCommandTimeout |
Command timeout.
| |
mConnectionCreated |
If true, the connection was created from this object
| |
mConnectionString |
Connection string for specific provider.
| |
mConnectionStringName |
Connection string name
| |
mLastError |
Last connection error
| |
mLocalTransaction |
SqlTransaction object.
| |
mNativeConnection |
Native connection object. It depends on provider type.
| |
mNestedConnections |
Nested connections indexed by the connection string [connectionString -> IDbConnection]
| |
mNestedConnectionsList |
List of nested connections
| |
mOriginalThreadID |
Original thread ID of the connection.
| |
mUseScopeConnection |
If true, the connection uses the scope connection
|
Properties
Name | Description | |
---|---|---|
AdvancedSettings |
Advanced settings.
| |
CommandTimeout |
Command timeout.
| |
ConnectionCreated |
If true, some connection was used
| |
ConnectionString |
Connection string for specific provider.
| |
ConnectionStringName |
Connection string name
| |
DisableConnectionDebug |
If true, the debug is disabled on this connection
| |
DisableQueryDebug |
If true, the debug of queries is disabled on this connection
| |
KeepOpen |
If true, the connection stays open even if close is requested.
| |
LocalAdvancedSettings |
Local advanced settings.
| |
LocalKeepOpen |
If true, the connection stays open even if close is requested.
| |
LocalTransaction |
Transaction object of local instance.
| |
NativeConnection |
Native connection object. It depends on provider type.
| |
NativeDBConnection |
Native connection object. It depends on provider type.
| |
Transaction |
Transaction object.
| |
UseScopeConnection |
If true, the connection uses the scope connection
|
See Also