T
Cocktail Help Reference
AllInDataSourceAsync<T> Method
See Also  Send Feedback
Cocktail.Compat Assembly > Cocktail Namespace > Compatibility Class : AllInDataSourceAsync<T> Method



source
orderBy
includeProperties
onSuccess
onFail

Glossary Item Box

Provides compatibility for legacy code.

Syntax

Visual Basic (Declaration) 
<ExtensionAttribute()>
Public Shared Function AllInDataSourceAsync(Of T As Class)( _
   ByVal source As IRepository(Of T), _
   ByVal orderBy As Func(Of IQueryable(Of T),IOrderedQueryable(Of T)), _
   ByVal includeProperties As String, _
   ByVal onSuccess As Action(Of IEnumerable(Of T)), _
   ByVal onFail As Action(Of Exception) _
) As OperationResult(Of IEnumerable(Of T))
Visual Basic (Usage)Copy Code
Dim source As IRepository(Of T)
Dim orderBy As Func(Of IQueryable(Of T),IOrderedQueryable(Of T))
Dim includeProperties As String
Dim onSuccess As Action(Of IEnumerable(Of T))
Dim onFail As Action(Of Exception)
Dim value As OperationResult(Of IEnumerable(Of T))
 
value = Compatibility.AllInDataSourceAsync(Of T)(source, orderBy, includeProperties, onSuccess, onFail)

Parameters

source
orderBy
includeProperties
onSuccess
onFail

Type Parameters

T

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.