ObjectTransaction Class |
Namespace: Aloe.SystemFrameworks.Domain
The ObjectTransaction type exposes the following members.
Name | Description | |
---|---|---|
![]() | ObjectTransaction |
Initializes a new transaction, whose primary buffer will be bound to the specified buffer.
|
Name | Description | |
---|---|---|
![]() | ApplicationName |
Gets or sets the name of the application that created the transaction.
|
![]() | DataSource |
Gets the data source.
|
![]() | ExtendedProperties |
Extended properties contain temporary (not persisted) values in the object instance.
|
![]() | ExternalDataMode |
Gets a value indicating whether the transaction runs in external data mode. In this mode, the primary data buffer is externally linked.
|
![]() | PrimaryBuffer |
Gets the buffer, which allows low-level access to all data tables and columns
|
![]() | RepositorySource |
Gets a reference to the primary repository source for the transaction
|
![]() | TransactionName |
Gets the transaction name. It is used only for identification purposes.
|
![]() | UserName |
Gets or sets the name of the user that created the transaction.
|
Name | Description | |
---|---|---|
![]() | Clone |
Creates a new ObjectTransaction that is a shallow copy of the current instance.
The primary buffer is not copied.
|
![]() | Commit |
Update the data source with the current changes.
|
![]() | Dispose |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
![]() | ExecuteRulesForAggregateCommit |
Executes the rules for aggregate commit event.
|
![]() | ExecuteRulesForCommit |
Executes the rules for the given validation event for all objects in the transaction.
The validation violations are populated into the event object.
|
![]() | FindFirstOrDefault(Repository, ExpressionFuncDomainObject, Boolean) |
Searches through both committed and uncommitted objects for a single object, matching the predicate.
Returns null if not found.
This variant
|
![]() | FindFirstOrDefaultTObject(ExpressionFuncTObject, Boolean, FuncTObject, Boolean) |
Searches through both committed and uncommitted objects for a single object, matching the predicate.
Returns null if not found.
|
![]() | FindFirstOrDefaultTObject(Repository, ExpressionFuncTObject, Boolean, FuncTObject, Boolean) |
Searches through both committed and uncommitted objects for a single object, matching the predicate.
Returns null if not found.
This overload could be used if the search requires type casting to intermediate object type.
|
![]() | GetTObject |
Searches both the uncommitted and committed objects for the object with the specified type and object id.
|
![]() | GetGhostTObject |
Gets the ghost object of the specified entity type.
|
![]() | GetLocalTObject |
Searches for locally buffered object with the specified id.
|
![]() | GetLocalObject |
Searches for locally buffered object with the specified id.
|
![]() | GetModifiedEntityObjects |
Gets the modified entity objects.
|
![]() | GetOrCreateExtendedPropertyTProperty |
Gets the or creates an object, which is cached for the duration of the transaction.
|
![]() | GetRegistered |
Gets alive object from the object registration list. Returns null if the object is not in the registration list.
|
![]() | LocalQuery(Repository, Boolean) |
Allows querying of the local, uncommitted objects in the transaction.
This is the untyped overload of the method.
|
![]() | LocalQueryTObject(Boolean) |
Allows querying of the local, uncommitted objects in the transaction.
|
![]() | NewTObject |
Creates a new object of the specified type.
|
![]() | QueryTObject |
Allows querying of the committed objects in the data source.
|
![]() | Rollback |
Rollbacks all changes made to the transaction since the last Commit
|
![]() | SearchTObject |
Searches for objects, matching the predicate in both the committed objects in the data source and the
uncommitted objects in the transaction.
|
![]() | ToString |
Returns a String that represents this instance.
(Overrides ObjectToString.) |
Name | Description | |
---|---|---|
![]() | DataAttributeChanged |
Fired when data attribute has changed
|
![]() | DataAttributeChanging |
Fired when data attribute is changing
|
![]() | ObjectDeleted |
Fired when object is deleted.
|
![]() | WarningIssued |
Fired when a warning is issued
|
Name | Description | |
---|---|---|
![]() | FillMissingDefaults |
Executes the late-default expression for each attribute, if the current value is null or equal
to a constant default, for all modified entity objects in the transaction.
(Defined by ObjectTransactionExtensions.) |
The transaction buffers all data changes in memory and allows committing at any given moment. The transaction also allows off-line operation, storing changes until the server connection is back.
The transaction provides methods for accessing the repositories and the domain objects.
The isolation level is roughly similar to the Repeatable Read, but it does not use any locks.