DevForce Help Reference
AcceptChanges Method (EntityAspectExtensions)


Accepts all changes to this Entity, returning the EntityState to Unchanged.
Syntax
'Declaration
 
<ExtensionAttribute()>
Public Shared Sub AcceptChanges( _
   ByVal entity As EntityAspect _
) 
'Usage
 
Dim entity As EntityAspect
 
EntityAspectExtensions.AcceptChanges(entity)
[Extension()]
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 EntityChanging and EntityChanged events are fired with an EntityAction of IdeaBlade.EntityModel.EntityAction.Commit when this method is executed.

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

Send Feedback