Visual Basic (Declaration) | |
---|---|
Function AllInDataSourceAsync( _ Optional ByVal orderBy As Func(Of IQueryable(Of T),IOrderedQueryable(Of T)), _ Optional ByVal includeProperties As String, _ Optional ByVal onSuccess As Action(Of IEnumerable(Of T)), _ Optional ByVal onFail As Action(Of Exception) _ ) As OperationResult(Of IEnumerable(Of T)) |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance 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 = instance.AllInDataSourceAsync(orderBy, includeProperties, onSuccess, onFail) |
C# | |
---|---|
OperationResult<IEnumerable<T>> AllInDataSourceAsync( Func<IQueryable<T>,IOrderedQueryable<T>> orderBy, string includeProperties, Action<IEnumerable<T>> onSuccess, Action<Exception> onFail ) |
C++/CLI | |
---|---|
OperationResult<IEnumerable<T^>^>^ AllInDataSourceAsync( Func<IQueryable<T^>^,IOrderedQueryable<T^>^>^ orderBy, String^ includeProperties, Action<IEnumerable<T^>^>^ onSuccess, Action<Exception^>^ onFail ) |
Parameters
- orderBy
- Optional sorting function to sort the returned list of entities.
- includeProperties
- Optional related entities to eager fetch together with the returned list of entities. Use comma to separate multiple properties.
- onSuccess
- Optional callback to be called when the entity retrieval was successful.
- onFail
- Optional callback to be called when the entity retrieval failed.
Return Value
Asynchronous operation result.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