Visual Basic (Declaration) | |
---|---|
Public Overloads Function FindInCache(Of TResult)( _ ByVal selector As Func(Of IQueryable(Of T),IQueryable(Of TResult)), _ Optional ByVal predicate As Expression(Of Func(Of T,Boolean)), _ Optional ByVal orderBy As Func(Of IQueryable(Of TResult),IOrderedQueryable(Of TResult)) _ ) As IEnumerable(Of TResult) |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As Repository(Of T) Dim selector As Func(Of IQueryable(Of T),IQueryable(Of TResult)) Dim predicate As Expression(Of Func(Of T,Boolean)) Dim orderBy As Func(Of IQueryable(Of TResult),IOrderedQueryable(Of TResult)) Dim value As IEnumerable(Of TResult) value = instance.FindInCache(Of TResult)(selector, predicate, orderBy) |
C++/CLI | |
---|---|
public: IEnumerable<TResult^>^ FindInCachegeneric<typename TResult> ( Func<IQueryable<T^>^,IQueryable<TResult^>^>^ selector, Expression<Func<T^,bool>^>^ predicate, Func<IQueryable<TResult^>^,IOrderedQueryable<TResult^>^>^ orderBy ) |
Parameters
- selector
- The selector used to shape the result.
- predicate
- Optional predicate to filter the returned list of objects.
- orderBy
- Optional sorting function to sort the returned list of objects.
Type Parameters
- TResult
Return Value
The list of retrieved objects.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