IdeaBlade DevForce 2010 Help Reference
AttachEntity Method
See Also  Send Feedback
IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityManager Class : AttachEntity Method



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

Visual Basic (Declaration) 
Public Sub AttachEntity( _
   ByVal entity As Object, _
   Optional ByVal entityState As EntityState _
) 
Visual Basic (Usage)Copy Code
Dim instance As EntityManager
Dim entity As Object
Dim entityState As EntityState
 
instance.AttachEntity(entity, entityState)
C# 
public void AttachEntity( 
   object entity,
   EntityState entityState
)
C++/CLI 
public:
void AttachEntity( 
   Object^ entity,
   EntityState entityState
) 

Parameters

entity
entityState

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.