Cocktail Help Reference
HasEntity Method
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > UnitOfWork Class : HasEntity Method



entity
Entity to check if attached to current UnitOfWork.

Glossary Item Box

Returns true if the provided entity is attached to the current UnitOfWork's EntityManager.

Syntax

Visual Basic (Declaration) 
Public Function HasEntity( _
   ByVal entity As Object _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As UnitOfWork
Dim entity As Object
Dim value As Boolean
 
value = instance.HasEntity(entity)
C# 
public bool HasEntity( 
   object entity
)
C++/CLI 
public:
bool HasEntity( 
   Object^ entity
) 

Parameters

entity
Entity to check if attached to current UnitOfWork.

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

© 2012 All Rights Reserved.