EntityTransaction Interface
NPersistence Reference Guide
Interface used to control transactions on resource-local entity managers. The GetTransaction()()()() method returns the EntityTransaction interface.

Namespace: NPersistence
Assembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)

Syntax

   
 C# 
public interface EntityTransaction

Members

      
 All Members  Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
Begin()()()()
Start a resource transaction.
Commit()()()()
Commit the current resource transaction, writing any unflushed changes to the database.
GetRollbackOnly()()()()
Determine whether the current resource transaction has been marked for rollback.

Return Value

boolean indicating whether the transaction has been marked for rollback
IsActive()()()()
Indicate whether a resource transaction is in progress.
Rollback()()()()
Roll back the current resource transaction.
SetRollbackOnly()()()()
Mark the current resource transaction so that the only possible outcome of the transaction is for the transaction to be rolled back.

See Also