Class Transaction
- Namespace
- PolarStudio
- Assembly
- PolarStudio.dll
This class is used for simplifying the use of transactions in script.
public class Transaction : IDisposable
- Inheritance
-
Transaction
- Implements
- Inherited Members
- Extension Methods
Properties
DataConnector
Returns the DataConnector the transaction is created for.
public DataConnector DataConnector { get; }
Property Value
InTransaction
Returns True as long as the transaction is open. Only one close-action (Commit or RollBack) is allowed.
public bool InTransaction { get; }
Property Value
Methods
Commit()
This method closes an open transaction.
public void Commit()
Dispose()
Disposer. Is automatically called if the transaction is used in a Using-block.
public void Dispose()
~Transaction()
Destructor.
protected ~Transaction()
RollBack()
This method rolls back an open transaction.
public void RollBack()