Transaction

protected void Transaction(E entity)

Creates a new instance of Transaction and injects the newly created transaction into the given entity.

The entity state and attributes are set as starting values for this transaction.

Parameters

entity

the entity to create the transaction for

See also


protected void Transaction(E entity, S state, Version version)

Acts similar to an overloaded ctor, but instead of using the original entity state and version, this transaction will have the passed state and version as a starting point.

Note, that the given state and version are applied to the actual entity upon commit.

Parameters

entity

the target entity to modify within this transaction

state

the entity state to set

version

the entity version to set