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) | ![]() |
---|---|
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) |
C# | |
---|---|
[ExtensionAttribute()] public static OperationResult<IEnumerable<T>> AllInDataSourceAsync<T>( IRepository<T> source, Func<IQueryable<T>,IOrderedQueryable<T>> orderBy, string includeProperties, Action<IEnumerable<T>> onSuccess, Action<Exception> onFail ) where T: class |
C++/CLI | |
---|---|
[ExtensionAttribute()] public: static OperationResult<IEnumerable<T^>^>^ AllInDataSourceAsyncgeneric<typename T> ( IRepository<T^>^ source, Func<IQueryable<T^>^,IOrderedQueryable<T^>^>^ orderBy, String^ includeProperties, Action<IEnumerable<T^>^>^ onSuccess, Action<Exception^>^ onFail ) where T: ref class |
Parameters
- source
- orderBy
- includeProperties
- onSuccess
- onFail
Type Parameters
- T
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