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



entities
entityState
Adds a collection of detached entities to this EntityManager and marks them with the specified EntityState. Throws an exception if an entity with the same key already exists in the manager or if the specified entities are not in a detached state.

Syntax

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

Parameters

entities
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.