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



entity
Accepts all changes to this Entity, returning the EntityState to Unchanged.

Syntax

Visual Basic (Declaration) 
<ExtensionAttribute()>
Public Shared Sub AcceptChanges( _
   ByVal entity As EntityAspect _
) 
Visual Basic (Usage)Copy Code
Dim entity As EntityAspect
 
EntityAspectExtensions.AcceptChanges(entity)
C# 
[ExtensionAttribute()]
public static void AcceptChanges( 
   EntityAspect entity
)
C++/CLI 
[ExtensionAttribute()]
public:
static void AcceptChanges( 
   EntityAspect^ entity
) 

Parameters

entity

Remarks

AcceptChanges is automatically called by the EntityManager after a successful IdeaBlade.EntityModel.EntityManager.SaveChanges call; there is rarely a need to call this method directly.

The IdeaBlade.EntityModel.EntityGroup.EntityChanging and IdeaBlade.EntityModel.EntityGroup.EntityChanged events are fired with an EntityAction of IdeaBlade.EntityModel.EntityAction.Commit when this method is executed.

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

© 2013 All Rights Reserved.