DomainObjects Class Library

BindUtil.BindToTransaction Method 

Binds the given persistable object to the current transaction if the current method call is being made in the context of a transaction. If the transaction commits, the given object will be persisted to the database: if the object is new, then the object will be inserted to the database, if the object is modified, then the object will be updated to the database and if Delete has been called on the object, then the object will be deleted from the database.

public static void BindToTransaction(
   TransactableObject transactableObject
);

Parameters

transactableObject
The persistable object to bind to the current transaction

See Also

BindUtil Class | DomainObjects.Facade.Transaction Namespace