DomainObjects Class Library |
|
TransactionAttribute Constructor (TransactionOption, Type)
Initiates a transaction of the given transactionOption type. If the transaction commits, DomainObjects will create an instance of the given transactionAwareType and call BeforeCommit on the instance before calling this method on the ITransactionAware objects bound to the transaction and will call AfterCommit on the instance before calling this method on the ITransactionAware objects bound to the transaction.
Parameters
-
transactionOption
- The type of transaction to initiate.
-
transactionAwareType
- The type that implements the ITransactionAware interface. If the transaction commits, DomainObjects will create an instance of the given transactionAwareType and call BeforeCommit on the instance before calling this method on the ITransactionAware objects bound to the transaction and will call AfterCommit on the instance before calling this method on the ITransactionAware objects bound to the transaction.
See Also
TransactionAttribute Class | DomainObjects.Facade.Transaction Namespace | TransactionAttribute Constructor Overload List