T
The type of Entity to retrieve
IdeaBlade DevForce 2010 Help Reference
FindEntities<T>(EntityState) Method
See Also  Send Feedback
IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityManager Class > FindEntities Method : FindEntities<T>(EntityState) Method



entityState
EntityState(s) of entities to return
Retrieves all entities of a specified type with the specified entity state(s) from cache. (Except EntityState.Detached)

Syntax

Visual Basic (Declaration) 
Public Overloads Function FindEntities(Of T As Class)( _
   ByVal entityState As EntityState _
) As IEnumerable(Of T)
Visual Basic (Usage)Copy Code
Dim instance As EntityManager
Dim entityState As EntityState
Dim value As IEnumerable(Of T)
 
value = instance.FindEntities(Of T)(entityState)
C# 
public IEnumerable<T> FindEntities<T>( 
   EntityState entityState
)
where T: class
C++/CLI 
public:
IEnumerable<T^>^ FindEntitiesgeneric<typename T>
( 
   EntityState entityState
) 
where T: ref class

Parameters

entityState
EntityState(s) of entities to return

Type Parameters

T
The type of Entity to retrieve

Return Value

A collection of Entities

Remarks

As the EntityState is a flags enumeration, you can supply multiple OR'ed values to search for multiple entity states. Detached Entities are not associated with an EntityManager and won't be returned.

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.