AliveTypeExtensions.SelectDataAsync<TEntity> Method

NOTE: This member is now obsolete.Use objectSpace.Xafari().SelectDataAsync() method instead.

Asynchronously retrieves entities from an object space, using the specified query parameters.

Namespace: Xafari
Assembly: Xafari.BC (in Xafari.BC.dll)

collallSyntax

  • c#
  • VB

[Obsolete("Use objectSpace.Xafari().SelectDataAsync() method instead.")]
public static object SelectDataAsync<TEntity>(
     this IObjectSpaceobjectSpace,
     CriteriaOperatorCollectionproperties,
     CriteriaOperatorcriteria,
     CriteriaOperatorCollectiongroupProperties,
     CriteriaOperatorgroupCriteria,
     boolselectDeleted,
     intskipSelectedRecords,
     inttopSelectedRecords,
     SortingCollectionsorting,
     AsyncSelectDataCallbackcallback
)
     where TEntity : class

<Obsolete("Use objectSpace.Xafari().SelectDataAsync() method instead.")> _
<System.Runtime.CompilerServices.Extension> _
Public Shared Function SelectDataAsync(Of TEntity)(ByVal , As IObjectSpaceobjectSpace, ByVal , As CriteriaOperatorCollectionproperties, ByVal , As CriteriaOperatorcriteria, ByVal , As CriteriaOperatorCollectiongroupProperties, ByVal , As CriteriaOperatorgroupCriteria, ByVal , As boolselectDeleted, ByVal , As intskipSelectedRecords, ByVal , As inttopSelectedRecords, ByVal , As SortingCollectionsorting, ByVal ) As AsyncSelectDataCallbackcallback) As Object
End Function

Type Parameters

TEntity

A Type object that identifies the type of objects against which the expression will be evaluated.

 

 

Parameters

objectSpace

Target object space.

properties

A CriteriaOperatorCollection object which specifies object properties to be retrieved.

criteria

A CriteriaOperator descendant which specifies the objects to be retrieved.

groupProperties

A CriteriaOperatorCollection object which specifies the grouping properties.

groupCriteria

A CriteriaOperator descendant which specifies the grouping criteria for the retrieved objects.

selectDeleted

true to include the persistent objects marked as deleted into the list; otherwise, false.

skipSelectedRecords

An integer value which specifies the number of objects to exclude when populating the list.

topSelectedRecords

An integer value which specifies the maximum number of objects to be retrieved.

sorting

A SortingCollection object that specifies the sort order for the list of the retrieved objects.

callback

A AsyncSelectDataCallback delegate to be called after the list has been retrieved. This list is passed as a parameter to callback.

 

 

Return Value

An object identifying the current asynchronous operation, intended for internal use.

 

collallSee Also