DbContext Class |
Namespace: Omada.OE.AppLogic
public abstract class DbContext
The DbContext type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | Connection |
Gets the current connection. Throws an exception if no connection is active.
|
![]() ![]() | CurrentTransaction |
Gets the current transaction, or null if no transaction exists.
|
![]() ![]() | RequiredTransaction |
Gets the current transaction, throwing an exception is no transaction exists.
|
Name | Description | |
---|---|---|
![]() ![]() ![]() | DoInConnection(DbContextActionWithNoResult) |
Execute an action which doesn't return a value. If no current connection exists, it will establish a connection to the customer database and close it afterwards.
An existing connection will be reused. Inside the action, the connection is available as Connection.
|
![]() ![]() ![]() | DoInConnectionT(DbContextActionWithResultT) |
Execute an action and return the result. If no current connection exists, it will establish a connection to the customer database and close it afterwards.
An existing connection will be reused. Inside the action, the connection is available as Connection.
|
![]() ![]() | DoInExistingConnection(DbContextActionWithNoResult, SqlConnection) | |
![]() ![]() ![]() | DoInExistingConnectionT(DbContextActionWithResultT, SqlConnection) |
This will execute an action and return the result. While the action executes, Connection will be set to connectionToUse.
If a current connection exists, it will be temporarily replaced by connectionToUse.
|
![]() ![]() | DoInExistingTransaction(DbContextActionWithNoResult, SqlConnection, SqlTransaction, Boolean) | |
![]() ![]() | DoInExistingTransactionT(DbContextActionWithResultT, SqlConnection, SqlTransaction, Boolean) | |
![]() ![]() | DoInTransaction(DbContextActionWithNoResult, String) | |
![]() ![]() | DoInTransactionT(DbContextActionWithResultT, String) | |
![]() ![]() | DoInTransactionSavepoint(String, DbContextActionWithNoResult) | |
![]() ![]() | DoInTransactionSavepointT(String, DbContextActionWithResultT) | |
![]() ![]() | SafeRollback |
Name | Description | |
---|---|---|
![]() | ToBool |
Converts object to boolean.
(Defined by ObjectExtensions.) |
![]() | ToDateTime |
Converts object to DateTime.
(Defined by ObjectExtensions.) |
![]() | ToInt |
Converts object to integer.
(Defined by ObjectExtensions.) |