Cocktail Help Reference
HasEntity Method
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > IUnitOfWork Interface : 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) 
Function HasEntity( _
   ByVal entity As Object _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As IUnitOfWork
Dim entity As Object
Dim value As Boolean
 
value = instance.HasEntity(entity)
C# 
bool HasEntity( 
   object entity
)
C++/CLI 
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.