Click or drag to resize

PFItemBatchOperationTPFItem Method

Executes an operation for each of passed items. Operations will be executed in the context of a transaction (one for each connection). Transactions are committed after all operations. If an exception is thrown, everything is rollbacked.

Namespace:  Packflow.Core
Assembly:  MicaSystems.Packflow.Core (in MicaSystems.Packflow.Core.dll) Version: 1.0.0.0 (3.2.0.306)
Syntax
C#
public static PFOperationResult BatchOperation<TPFItem>(
	IEnumerable<TPFItem> items,
	Action<TPFItem> operation
)
where TPFItem : PFItem

Parameters

items
Type: System.Collections.GenericIEnumerableTPFItem
operation
Type: SystemActionTPFItem

Type Parameters

TPFItem

Return Value

Type: PFOperationResult
Success if committed, success false and exception if rollbacked.
See Also