DevForce Help Reference
Delete Method (EntityAspectExtensions)


Marks this Entity for deletion; the IdeaBlade.EntityModel.EntityState becomes "Deleted".
Syntax
'Declaration
 
<ExtensionAttribute()>
Public Shared Sub Delete( _
   ByVal entity As EntityAspect _
) 
'Usage
 
Dim entity As EntityAspect
 
EntityAspectExtensions.Delete(entity)
[Extension()]
public static void Delete( 
   EntityAspect entity
)

Parameters

entity
Remarks
You must call IdeaBlade.EntityModel.EntityManager.SaveChanges() to persist this change to the backend data source.

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

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