The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

IObjectSpace.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.v19.2.dll

Declaration

IQueryable<T> GetObjectsQuery<T>(
    bool inTransaction = false
)
Function GetObjectsQuery(Of T)(
    inTransaction As Boolean = False
) As IQueryable(Of T)
IQueryable<T> GetObjectsQuery<T>(
    bool inTransaction = false
)
Function GetObjectsQuery(Of T)(
    inTransaction As Boolean = False
) As IQueryable(Of T)
IQueryable<T> GetObjectsQuery<T>(
    bool inTransaction = false
)
Function GetObjectsQuery(Of T)(
    inTransaction As Boolean = False
) As IQueryable(Of T)

Parameters

Name Type Description
inTransaction Boolean

true, if querying a data store for objects includes all in-memory changes into query results; otherwise, false. Has effect in XPO only.

Parameters

Name Type Description
inTransaction Boolean

true, if querying a data store for objects includes all in-memory changes into query results; otherwise, false. Has effect in XPO only.

Parameters

Name Type Description
inTransaction Boolean

true, if querying a data store for objects includes all in-memory changes into query results; otherwise, false. Has effect in XPO only.

Returns

Type Description
IQueryable<T>

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

Returns

Type Description
IQueryable<T>

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

Returns

Type Description
IQueryable<T>

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

Type Parameters

Name Description
T

Type Parameters

Name Description
T

Type Parameters

Name Description
T

Remarks

You can use the following code to query data in both XPO and EF applications:

IQueryable<Payment> query = objectSpace.GetObjectsQuery<Payment>(true);
object obj = query.Where(p => p.Hours == 4).FirstOrDefault();

The GetObjectsQuery<T> method has implementations in XPObjectSpace, EFObjectSpace and NonPersistentObjectSpace classes:

See Also