IdeaBlade DevForce 2010 Help Reference
RejectChanges Method
See Also  Send Feedback
IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel.Extensions Namespace > EntityAspectExtensions Class : RejectChanges Method



entity
Rejects (rolls back) all changes to this Entity since it was queried or had AcceptChanges called on it.

Syntax

Visual Basic (Declaration) 
<ExtensionAttribute()>
Public Shared Sub RejectChanges( _
   ByVal entity As EntityAspect _
) 
Visual Basic (Usage)Copy Code
Dim entity As EntityAspect
 
EntityAspectExtensions.RejectChanges(entity)
C# 
[ExtensionAttribute()]
public static void RejectChanges( 
   EntityAspect entity
)
C++/CLI 
[ExtensionAttribute()]
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 IdeaBlade.EntityModel.EntityGroup.EntityChanging and IdeaBlade.EntityModel.EntityGroup.EntityChanged events will fire during a RejectChanges call with an EntityAction of IdeaBlade.EntityModel.EntityAction.Rollback.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

Reference

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

© 2013 All Rights Reserved.