The requested page is not available for the requested platform. You are viewing the content for Default platform.

BaseObjectSpace.CreateDataView(Type, IList<DataViewExpression>, CriteriaOperator, IList<SortProperty>) Method

Returns a list of data records retrieved from the database without loading complete business classes (a data view).

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v19.1.dll

Declaration

public IList CreateDataView(
    Type objectType,
    IList<DataViewExpression> expressions,
    CriteriaOperator criteria,
    IList<SortProperty> sorting
)
Public Function CreateDataView(
    objectType As Type,
    expressions As IList(Of DataViewExpression),
    criteria As CriteriaOperator,
    sorting As IList(Of SortProperty)
) As IList

Parameters

Name Type Description
objectType Type

A Type of requested objects.

expressions IList<DataViewExpression>

An IList<DataViewExpression> list that specifies data view column names and expressions used to compute column values. These column names can be used for sorting and filtering the data view via the criteria and sorting parameters.

criteria CriteriaOperator

A CriteriaOperator object that specifies criteria associated with the data view.

sorting IList<SortProperty>

An IList<SortProperty> collection whose elements identify the sorted columns within the data view.

Returns

Type Description
IList

An IList object that returns a lightweight list of data records.

Remarks

This method does not return real objects. Instead, a lightweight read-only list of data records that can be viewed much more quickly than a real objects collection is returned.

This method result can be directly cast to XafDataView.

See Also