CSLA .NET 10.0.0
A home for your business logic
Loading...
Searching...
No Matches
Csla.TransactionalAttribute Class Referencesealed

Marks a DataPortal_XYZ method to run within the specified transactional context. More...

Inheritance diagram for Csla.TransactionalAttribute:

Public Member Functions

 TransactionalAttribute ()
 Marks a method to run within a COM+ transactional context.
 TransactionalAttribute (TransactionalTypes transactionType)
 Marks a method to run within the specified type of transactional context.
 TransactionalAttribute (TransactionalTypes transactionType, TransactionIsolationLevel transactionIsolationLevel)
 Marks a method to run within the specified type of transactional context.
 TransactionalAttribute (TransactionalTypes transactionType, TransactionIsolationLevel transactionIsolationLevel, TransactionScopeAsyncFlowOption asyncFlowOption)
 Marks a method to run within the specified type of transactional context.
 TransactionalAttribute (TransactionalTypes transactionType, TransactionIsolationLevel transactionIsolationLevel, int timeoutInSeconds)
 Marks a method to run within the specified type of transactional context.
 TransactionalAttribute (TransactionalTypes transactionType, TransactionIsolationLevel transactionIsolationLevel, int timeoutInSeconds, TransactionScopeAsyncFlowOption asyncFlowOption)
 Marks a method to run within the specified type of transactional context.

Properties

TransactionalTypes TransactionType [get]
 Gets the type of transaction requested by the business object method.
TransactionIsolationLevel TransactionIsolationLevel [get]
 Specifies override for transaction isolation level. Default can be specified in .config file via CslaTransactionIsolationLevel setting If none specified, Serializable level is used.
int TimeoutInSeconds [get]
 Timeout for transaction, in seconds.
TransactionScopeAsyncFlowOption AsyncFlowOption [get]
 Gets the AsyncFlowOption for this transaction.

Detailed Description

Marks a DataPortal_XYZ method to run within the specified transactional context.

Each business object method may be marked with this attribute to indicate which type of transactional technology should be used by the server-side DataPortal. The possible options are listed in the TransactionalTypes enum.

If the Transactional attribute is not applied to a DataPortal_XYZ method then the Manual option is assumed.

If the Transactional attribute is applied with no explicit choice for transactionType then the TransactionScope option is assumed.

Both the EnterpriseServices and TransactionScope options provide 2-phase distributed transactional support.

Constructor & Destructor Documentation

◆ TransactionalAttribute() [1/6]

Csla.TransactionalAttribute.TransactionalAttribute ( )
inline

Marks a method to run within a COM+ transactional context.

◆ TransactionalAttribute() [2/6]

Csla.TransactionalAttribute.TransactionalAttribute ( TransactionalTypes transactionType)
inline

Marks a method to run within the specified type of transactional context.

Parameters
transactionTypeSpecifies the transactional context within which the method should run.

◆ TransactionalAttribute() [3/6]

Csla.TransactionalAttribute.TransactionalAttribute ( TransactionalTypes transactionType,
TransactionIsolationLevel transactionIsolationLevel )
inline

Marks a method to run within the specified type of transactional context.

Parameters
transactionTypeSpecifies the transactional context within which the method should run.
transactionIsolationLevelSpecifies override for transaction isolation level. Default can be specified in .config file via CslaTransactionIsolationLevel setting If none specified, Serializable level is used

◆ TransactionalAttribute() [4/6]

Csla.TransactionalAttribute.TransactionalAttribute ( TransactionalTypes transactionType,
TransactionIsolationLevel transactionIsolationLevel,
TransactionScopeAsyncFlowOption asyncFlowOption )
inline

Marks a method to run within the specified type of transactional context.

Parameters
transactionTypeSpecifies the transactional context within which the method should run.
transactionIsolationLevelSpecifies override for transaction isolation level. Default can be specified in .config file via CslaTransactionIsolationLevel setting If none specified, Serializable level is used
asyncFlowOptionSpecifies the async flow option used to initialize the transaction.

◆ TransactionalAttribute() [5/6]

Csla.TransactionalAttribute.TransactionalAttribute ( TransactionalTypes transactionType,
TransactionIsolationLevel transactionIsolationLevel,
int timeoutInSeconds )
inline

Marks a method to run within the specified type of transactional context.

Parameters
transactionTypeSpecifies the transactional context within which the method should run.
transactionIsolationLevelSpecifies override for transaction isolation level. Default can be specified in .config file via CslaTransactionIsolationLevel setting If none specified, Serializable level is used
timeoutInSecondsTimeout for transaction, in seconds

◆ TransactionalAttribute() [6/6]

Csla.TransactionalAttribute.TransactionalAttribute ( TransactionalTypes transactionType,
TransactionIsolationLevel transactionIsolationLevel,
int timeoutInSeconds,
TransactionScopeAsyncFlowOption asyncFlowOption )
inline

Marks a method to run within the specified type of transactional context.

Parameters
transactionTypeSpecifies the transactional context within which the method should run.
transactionIsolationLevelSpecifies override for transaction isolation level. Default can be specified in .config file via CslaTransactionIsolationLevel setting If none specified, Serializable level is used
timeoutInSecondsTimeout for transaction, in seconds
asyncFlowOptionSpecifies the async flow option used to initialize the transaction.

Property Documentation

◆ AsyncFlowOption

TransactionScopeAsyncFlowOption Csla.TransactionalAttribute.AsyncFlowOption
get

Gets the AsyncFlowOption for this transaction.

◆ TimeoutInSeconds

int Csla.TransactionalAttribute.TimeoutInSeconds
get

Timeout for transaction, in seconds.

The timeout for transaction, in seconds

◆ TransactionIsolationLevel

TransactionIsolationLevel Csla.TransactionalAttribute.TransactionIsolationLevel
get

Specifies override for transaction isolation level. Default can be specified in .config file via CslaTransactionIsolationLevel setting If none specified, Serializable level is used.

◆ TransactionType

TransactionalTypes Csla.TransactionalAttribute.TransactionType
get

Gets the type of transaction requested by the business object method.


The documentation for this class was generated from the following file: