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



Adds a newly created entity to its associated EntityManager.

Syntax

Visual Basic (Declaration) 
Public Sub AddToManager() 
Visual Basic (Usage)Copy Code
Dim instance As EntityAspect
 
instance.AddToManager()
C# 
public void AddToManager()
C++/CLI 
public:
void AddToManager(); 

Remarks

The associated EntityManager will either be the EntityManager that was called to create this Entity (IdeaBlade.EntityModel.EntityManager.CreateEntity``1) or that was used to generate its ids ( EntityManager.GenerateId) If neither of these cases apply, then the InternalEntityManager's DefaultManager"/> will be used. There is no difference between AddToManager and IdeaBlade.EntityModel.EntityManager.AddEntity(IdeaBlade.EntityModel.Entity). Use either method to add a business object created by the EntityManager.CreateEntity method to the EntityManager cache. The object must have a "detached" IdeaBlade.EntityModel.Entity.EntityState, must not have ever been associated with another EntityManager and must have a unique EntityKey within the EntityManager to which it will be added.

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.