Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

NonPersistentObjectSpace.GetObjectsQuery<T>(Boolean) Method

Gets a queryable data structure that provides functionality to evaluate queries against a specific business object type.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public override IQueryable<T> GetObjectsQuery<T>(
    bool inTransaction = false
)

#Optional Parameters

Name Type Default Description
inTransaction Boolean False

This parameter has no effect in NonPersistentObjectSpace. It is added only to provide compatibility with IObjectSpace.GetObjectsQuery<T>.

#Type Parameters

Name
T

#Returns

Type Description
IQueryable<T>

An IQueryable<T> object that provides functionality to evaluate queries against a specific business object type.

#Remarks

If the CustomGetObjectsQuery event is handled and its Queryable argument is not empty, GetObjectsQuery<T> casts the Queryable query to IQueryable<T> and returns the result. Otherwise, the GetObjectsQuery<T> method casts the collection of objects created in the NonPersistentObjectSpace.ObjectsGetting event to IQueryable<T> and returns the result.

See Also