DevForce Help Reference
AttachEntity Method


Adds a detached entity to this EntityManager and marks it with the specified EntityState. Throws an exception if an entity with the same key already exists in the manager or if the specified entity is not in a detached state.
Syntax
'Declaration
 
Public Sub AttachEntity( _
   ByVal entity As Object, _
   Optional ByVal entityState As EntityState _
) 
'Usage
 
Dim instance As EntityManager
Dim entity As Object
Dim entityState As EntityState
 
instance.AttachEntity(entity, entityState)
public void AttachEntity( 
   object entity,
   EntityState entityState
)

Parameters

entity
entityState
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

EntityManager Class
EntityManager Members

Send Feedback