CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Csla.TransactionalAttribute Class Reference

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. More...
 
 TransactionalAttribute (TransactionalTypes transactionType)
 Marks a method to run within the specified type of transactional context. More...
 
 TransactionalAttribute (TransactionalTypes transactionType, TransactionIsolationLevel transactionIsolationLevel, int timeoutInSeconds)
 Marks a method to run within the specified type of transactional context. More...
 
 TransactionalAttribute (TransactionalTypes transactionType, TransactionIsolationLevel transactionIsolationLevel)
 Marks a method to run within the specified type of transactional context. More...
 
 TransactionalAttribute (TransactionalTypes transactionType, TransactionIsolationLevel transactionIsolationLevel, TransactionScopeAsyncFlowOption asyncFlowOption)
 Marks a method to run within the specified type of transactional context. More...
 

Properties

TransactionalTypes TransactionType [get]
 Gets the type of transaction requested by the business object method. More...
 
TransactionIsolationLevel TransactionIsolationLevel [get]
 Specifies override for transaction isolation level. More...
 
int TimeoutInSeconds [get]
 Timeout for transaction, in seconds More...
 
TransactionScopeAsyncFlowOption AsyncFlowOption [get]
 Gets the AsyncFlowOption for this transaction More...
 

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.

Definition at line 39 of file TransactionalAttribute.cs.

Constructor & Destructor Documentation

◆ TransactionalAttribute() [1/5]

Csla.TransactionalAttribute.TransactionalAttribute ( )

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

Definition at line 46 of file TransactionalAttribute.cs.

◆ TransactionalAttribute() [2/5]

Csla.TransactionalAttribute.TransactionalAttribute ( TransactionalTypes  transactionType)

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

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

Definition at line 58 of file TransactionalAttribute.cs.

◆ TransactionalAttribute() [3/5]

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

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

Definition at line 88 of file TransactionalAttribute.cs.

◆ TransactionalAttribute() [4/5]

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

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

Definition at line 110 of file TransactionalAttribute.cs.

◆ TransactionalAttribute() [5/5]

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

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.

Definition at line 143 of file TransactionalAttribute.cs.

Property Documentation

◆ AsyncFlowOption

TransactionScopeAsyncFlowOption Csla.TransactionalAttribute.AsyncFlowOption
get
Initial value:
=
TransactionScopeAsyncFlowOption.Suppress

Gets the AsyncFlowOption for this transaction

Definition at line 186 of file TransactionalAttribute.cs.

◆ TimeoutInSeconds

int Csla.TransactionalAttribute.TimeoutInSeconds
get

Timeout for transaction, in seconds

The timeout for transaction, in seconds

Definition at line 181 of file TransactionalAttribute.cs.

◆ 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

Definition at line 173 of file TransactionalAttribute.cs.

◆ TransactionType

TransactionalTypes Csla.TransactionalAttribute.TransactionType
get

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

Definition at line 166 of file TransactionalAttribute.cs.