DevForce Help Reference
AttachEntities Method


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
'Declaration
 
Public Sub AttachEntities( _
   ByVal entities As IEnumerable, _
   Optional ByVal entityState As EntityState _
) 
'Usage
 
Dim instance As EntityManager
Dim entities As IEnumerable
Dim entityState As EntityState
 
instance.AttachEntities(entities, entityState)
public void AttachEntities( 
   IEnumerable entities,
   EntityState entityState
)

Parameters

entities
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