.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

BaseObjectSpace.GetObjects<T>(CriteriaOperator, Boolean) Method

Returns an IList collection of objects of the specified type, retrieved to the current Object Space and filtered according to the specified criteria.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v20.2.dll

Declaration

public IList<T> GetObjects<T>(
    CriteriaOperator criteria,
    bool inTransaction
)
Public Function GetObjects(Of T)(
    criteria As CriteriaOperator,
    inTransaction As Boolean
) As IList(Of T)

Parameters

Name Type Description
criteria CriteriaOperator

A DevExpress.Data.Filtering.CriteriaOperator which specifies the criteria for object selection.

inTransaction Boolean

true if all objects (in the database and retrieved) are processed by the specified criteria; otherwise, false. Has effect in XPO only.

Type Parameters

Name
T

Returns

Type Description
IList<T>

A IList collection that contains the persistent objects of the specified type. Only objects that satisfy the specified criteria will be retrieved to this collection.

Remarks

To get the specified objects, this method invokes a protected virtual CreateCollection method that does nothing and returns null. So, the details on how the objects are retrieved depend on how the CreateCollection method is overridden in a particular descendant of the BaseObjectSpace class.

See Also