DevForce Help Reference
AddToManager Method (EntityAspectExtensions)


Adds a newly created entity to its associated IdeaBlade.EntityModel.EntityManager.
Syntax
'Declaration
 
<ExtensionAttribute()>
Public Shared Sub AddToManager( _
   ByVal entity As EntityAspect _
) 
'Usage
 
Dim entity As EntityAspect
 
EntityAspectExtensions.AddToManager(entity)
[Extension()]
public static void AddToManager( 
   EntityAspect entity
)

Parameters

entity
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 ( GenerateId) If neither of these cases apply, then the IdeaBlade.EntityModel.EntityManager'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 IdeaBlade.EntityModel.EntityManager.CreateEntity method to the EntityManager cache. The object must have a "detached" 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 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

EntityAspectExtensions Class
EntityAspectExtensions Members

Send Feedback