Persistate API documentation
ExecuteDelete Method (execution)
NamespacesPersistateStandardOperationsExecuteDelete(Execution)

[This is preliminary documentation and is subject to change.]

Handles the core functionality for Delete operation.
Declaration Syntax
C#
public static ExecutionResult ExecuteDelete(
	Execution execution
)
Parameters
execution (Execution)
The Execution object created for the Delete operation.
Return Value
A warning ExecutionResult with an appropriate message if the object has any logged associations to it, otherwise either CommitResult if the object was deleted, or NoActionResult if the user cancelled.
Remarks
If the target object's class has the LogAssociations function, then a check is made to determine if the object has any associations to it, and a warning is returned if this is the case. Otherwise, the user is asked for confirmation before deletion. If given, the target object is removed from the target collection.
Exceptions
ExceptionCondition
InvalidOperationExceptionThrown if the target collection is associated.

Assembly: Persistate (Module: Persistate) Version: 0.6.1.20 (0.6.1.20)