Partager via


SetDirty Method

Called by local class property set accessors when a change occurs to data members that are mapped to SQL storage.

Namespace:  Microsoft.CommerceServer.Runtime.Orders
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Overrides Sub SetDirty ( _
    propertyValue As Object _
)
'Usage
Dim instance As OrderGroup
Dim propertyValue As Object

instance.SetDirty(propertyValue)
public override void SetDirty(
    Object propertyValue
)
public:
virtual void SetDirty(
    Object^ propertyValue
) override
public override function SetDirty(
    propertyValue : Object
)

Parameters

Exceptions

Exception Condition
InvalidOperationException

The order group has been disposed, either directly or by conversion from an OrderTemplate to a Basket or a Basket to a PurchaseOrder.

Remarks

Updates local and parent change information and allows automatic validation of the specified property data SetChildDirty is called by the SetDirty implementations within child classes to propagate the dirty state upward, eventually up to base classes. Parent class implementations use this notification to update local "last updated" DateTime properties, and potentially to optimize update queries to storage.

The child did not generate a DateTime matching the time of the change.

Where applicable, forwards the dirty notification upward to a parent class using parent.SetChildDirty().

Permissions

See Also

Reference

OrderGroup Class

OrderGroup Members

Microsoft.CommerceServer.Runtime.Orders Namespace