DevForce Help Reference
RejectChanges Method (EntityAspectExtensions)


Rejects (rolls back) all changes to this Entity since it was queried or had IdeaBlade.EntityModel.Extensions.EntityAspectExtensions.AcceptChanges(IdeaBlade.EntityModel.EntityAspect) called on it.
Syntax
'Declaration
 
<ExtensionAttribute()>
Public Shared Sub RejectChanges( _
   ByVal entity As EntityAspect _
) 
'Usage
 
Dim entity As EntityAspect
 
EntityAspectExtensions.RejectChanges(entity)
[Extension()]
public static void RejectChanges( 
   EntityAspect entity
)

Parameters

entity
Remarks
Rejects any changes made to the Entity since the last save operation. This will also remove the Entity from the EntityManager if it was an 'added' object.

The EntityChanging and EntityChanged events will fire during a RejectChanges call with an EntityAction of IdeaBlade.EntityModel.EntityAction.Rollback.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

EntityAspectExtensions Class
EntityAspectExtensions Members
IdeaBlade.EntityModel.Entity.RejectChanges
IdeaBlade.EntityModel.Entity.RemoveFromManager()

Send Feedback