Class XbimReadWriteTransaction
A transaction allowing read and write operations on a model
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Xbim.IO.Esent
Assembly: Xbim.IO.Esent.dll
Syntax
public class XbimReadWriteTransaction : XbimReadTransaction, ITransaction, IDisposable
Properties
| Improve this Doc View SourceName
Declaration
public string Name { get; protected set; }
Property Value
Type | Description |
---|---|
System.String |
TransactionBatchSize
The maximum number of pulse actions before a transaction is automatically commited, default is 100
Declaration
public int TransactionBatchSize { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceBegin()
Declaration
public void Begin()
Commit()
Declaration
public void Commit()
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Overrides
| Improve this Doc View SourceModified()
Declaration
public IEnumerable<IInstantiableEntity> Modified()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IInstantiableEntity> |
Pulse()
Increments the pulse count for the transaction, if the pulse count exceed the Transaction batch size the transaction is committed and restarted
Declaration
public int Pulse()
Returns
Type | Description |
---|---|
System.Int32 |
Explicit Interface Implementations
| Improve this Doc View SourceITransaction.Commit()
Declaration
void ITransaction.Commit()
ITransaction.DoReversibleAction(Action, Action, IPersistEntity, ChangeType, Int32)
Declaration
void ITransaction.DoReversibleAction(Action doAction, Action undoAction, IPersistEntity entity, ChangeType changeType, int property)
Parameters
Type | Name | Description |
---|---|---|
System.Action | doAction | |
System.Action | undoAction | |
IPersistEntity | entity | |
ChangeType | changeType | |
System.Int32 | property |
ITransaction.Name
Declaration
string ITransaction.Name { get; }
Returns
Type | Description |
---|---|
System.String |
ITransaction.RollBack()
Declaration
void ITransaction.RollBack()
Implements
System.IDisposable