Visual Basic (Declaration) | |
---|---|
<ExtensionAttribute()> Public Shared Sub AddToManager( _ ByVal entity As EntityAspect _ ) |
Visual Basic (Usage) | ![]() |
---|---|
Dim entity As EntityAspect EntityAspectExtensions.AddToManager(entity) |
C# | |
---|---|
[ExtensionAttribute()] public static void AddToManager( EntityAspect entity ) |
C++/CLI | |
---|---|
[ExtensionAttribute()] public: static void AddToManager( EntityAspect^ entity ) |
Parameters
- entity
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 ( IdeaBlade.EntityModel.EntityManager.GenerateId) If neither of these cases apply, then the 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" IdeaBlade.EntityModel.EntityAspect.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.
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