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 (Usage) | Copy Code |
---|
Dim instance As EntityManager
Dim entity As Object
Dim entityState As EntityState
instance.AttachEntity(entity, 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